root / GES_PAC / Model / Personne.cs @ 6f451cc1
Historique | Voir | Annoter | Télécharger (687 octets)
1 |
|
---|---|
2 |
using SQLite; |
3 |
|
4 |
namespace GES_PAC.Model |
5 |
{ |
6 |
public class Personne |
7 |
{ |
8 |
#region Propri?t?s |
9 |
[PrimaryKey, AutoIncrement] |
10 |
public int Id { get; set; } |
11 |
public string? Nom { get; set; } |
12 |
public string? Prenom { get; set; } |
13 |
public string? Email { get; set; } |
14 |
#endregion |
15 |
|
16 |
#region Constructeurs |
17 |
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 |
#endregion |
25 |
public override string ToString() |
26 |
{ |
27 |
return $"{Nom} {Prenom}"; |
28 |
} |
29 |
} |
30 |
} |