Statistiques
| Branche: | Révision:

root / GES_PAC / Model / Personne.cs @ 6f451cc1

Historique | Voir | Annoter | Télécharger (687 octets)

1 65ad7e66 Lucas Bihannic
2 6f451cc1 lbihannic
using SQLite;
3
4 65ad7e66 Lucas Bihannic
namespace GES_PAC.Model
5
{
6
    public class Personne
7
    {
8 6f451cc1 lbihannic
        #region Propri?t?s
9
        [PrimaryKey, AutoIncrement]
10
        public int Id { get; set; }
11 65ad7e66 Lucas Bihannic
        public string? Nom { get; set; }
12
        public string? Prenom { get; set; }
13
        public string? Email { get; set; }
14 6f451cc1 lbihannic
        #endregion
15 65ad7e66 Lucas Bihannic
16 6f451cc1 lbihannic
        #region Constructeurs
17 65ad7e66 Lucas Bihannic
        public Personne() { }
18
        public Personne(string Nom, string Prenom, string Email)
19
        {
20
            this.Nom = Nom;
21
            this.Prenom = Prenom;
22
            this.Email = Email;
23
        }
24 6f451cc1 lbihannic
        #endregion
25 65ad7e66 Lucas Bihannic
        public override string ToString()
26
        {
27
            return $"{Nom} {Prenom}";
28
        }
29
    }
30
}