first push
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModelsLib.BDD_Models
|
||||
{
|
||||
[Table("T_DesireData")]
|
||||
public class DesireData
|
||||
{
|
||||
public DesireData(int key, string desire)
|
||||
{
|
||||
Key = key;
|
||||
Desire = desire;
|
||||
}
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Key { get; set; }
|
||||
|
||||
public string Desire { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModelsLib
|
||||
{
|
||||
/// <summary>
|
||||
/// classe modèle de la table de paramètrage
|
||||
/// </summary>
|
||||
[Table("T_Params")]
|
||||
public class ParametersDb
|
||||
{
|
||||
public ParametersDb(string key, string value)
|
||||
{
|
||||
Key = key;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
[Key]
|
||||
public string Key { get; set; }
|
||||
|
||||
public string Value { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModelsLib
|
||||
{
|
||||
[Table("T_ShootingData")]
|
||||
public class ShootingData
|
||||
{
|
||||
public ShootingData(string key, bool isPhotosSelected, int maxChoice, DateTime shootingDate, string instagramName)
|
||||
{
|
||||
Key = key;
|
||||
IsPhotosSelected = isPhotosSelected;
|
||||
MaxChoice = maxChoice;
|
||||
ShootingDate = shootingDate;
|
||||
InstagramName = instagramName;
|
||||
}
|
||||
|
||||
[Key]
|
||||
public string Key { get; set; }
|
||||
|
||||
public bool IsPhotosSelected { get; set; }
|
||||
|
||||
public int MaxChoice { get; set; }
|
||||
|
||||
public DateTime ShootingDate { get; set; }
|
||||
|
||||
public string InstagramName { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModelsLib
|
||||
{
|
||||
public class ContactModel
|
||||
{
|
||||
[Required(ErrorMessage = "Le nom est obligatoire")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "L'email est obligatoire")]
|
||||
[EmailAddress(ErrorMessage = "Email invalide")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Le message est obligatoire")]
|
||||
[MinLength(10, ErrorMessage = "Le message doit contenir au moins 10 caractères")]
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ModelsLib
|
||||
{
|
||||
public class EntityHome
|
||||
{
|
||||
/// <summary>
|
||||
/// Nom sur haut de page
|
||||
/// </summary>
|
||||
public string TitlePseudo { get; set; }
|
||||
|
||||
public string SubTitle1 { get; set; }
|
||||
public string SubTitle2 { get; set; }
|
||||
|
||||
public string InstaLink { get; set; }
|
||||
|
||||
public string InstaQrCode { get; set; }
|
||||
|
||||
public string Credentials { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace ModelsLib
|
||||
{
|
||||
public class PhotoUnit
|
||||
{
|
||||
public PhotoUnit()
|
||||
{
|
||||
|
||||
}
|
||||
public PhotoUnit(string photoName, string photoPath,bool isSelected)
|
||||
{
|
||||
PhotoName = photoName;
|
||||
PhotoPath = photoPath;
|
||||
IsSelected = isSelected;
|
||||
}
|
||||
|
||||
public string PhotoName { get; set; }
|
||||
|
||||
public bool IsSelected { get; set; }
|
||||
|
||||
public string PhotoPath { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user