Révision 6f451cc1 GES_PAC/Model/Personne.cs
GES_PAC/Model/Personne.cs | ||
---|---|---|
1 | 1 |
|
2 |
using SQLite; |
|
3 |
|
|
2 | 4 |
namespace GES_PAC.Model |
3 | 5 |
{ |
4 | 6 |
public class Personne |
5 | 7 |
{ |
6 |
public long Id { get; set; } |
|
8 |
#region Propri?t?s |
|
9 |
[PrimaryKey, AutoIncrement] |
|
10 |
public int Id { get; set; } |
|
7 | 11 |
public string? Nom { get; set; } |
8 | 12 |
public string? Prenom { get; set; } |
9 | 13 |
public string? Email { get; set; } |
14 |
#endregion |
|
10 | 15 |
|
11 |
|
|
16 |
#region Constructeurs |
|
12 | 17 |
public Personne() { } |
13 | 18 |
public Personne(string Nom, string Prenom, string Email) |
14 | 19 |
{ |
... | ... | |
16 | 21 |
this.Prenom = Prenom; |
17 | 22 |
this.Email = Email; |
18 | 23 |
} |
24 |
#endregion |
|
19 | 25 |
public override string ToString() |
20 | 26 |
{ |
21 | 27 |
return $"{Nom} {Prenom}"; |
Formats disponibles : Unified diff