Révision 6f451cc1 GES_PAC/Model/Comportement.cs
GES_PAC/Model/Comportement.cs | ||
---|---|---|
1 | 1 |
|
2 |
using SQLite; |
|
3 |
using System.ComponentModel.DataAnnotations.Schema; |
|
4 |
|
|
2 | 5 |
namespace GES_PAC.Model |
3 | 6 |
{ |
4 | 7 |
public class Comportement |
5 | 8 |
{ |
6 |
public long Id { get; set; } |
|
9 |
#region Propri?t?s |
|
10 |
[PrimaryKey, AutoIncrement] |
|
11 |
public int Id { get; set; } |
|
12 |
public int SerieAnimalId { get; set; } |
|
13 |
[ForeignKey("SerieAnimalId")] |
|
14 |
public SerieAnimal SerieAnimal { get; set; } |
|
7 | 15 |
public DateTime Time { get; set; } |
16 |
public int TypeComportementId { get; set; } |
|
17 |
[ForeignKey("TypeComportementId")] |
|
8 | 18 |
public TypeComportement Type { get; set; } |
9 | 19 |
public string? Commentaire { get; set; } |
20 |
#endregion |
|
10 | 21 |
|
22 |
#region Constructeurs |
|
23 |
public Comportement() { } |
|
11 | 24 |
public Comportement(DateTime Time, TypeComportement Type, string Commentaire) |
12 | 25 |
{ |
13 | 26 |
this.Time = Time; |
14 | 27 |
this.Type = Type; |
15 | 28 |
this.Commentaire = Commentaire; |
16 | 29 |
} |
30 |
#endregion |
|
17 | 31 |
} |
18 | 32 |
} |
Formats disponibles : Unified diff