Statistiques
| Branche: | Révision:

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

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

1 65ad7e66 Lucas Bihannic
2 6f451cc1 lbihannic
using SQLite;
3
using System.ComponentModel.DataAnnotations.Schema;
4
5 65ad7e66 Lucas Bihannic
namespace GES_PAC.Model
6
{
7
    public class Comportement
8
    {
9 6f451cc1 lbihannic
        #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; }
15 65ad7e66 Lucas Bihannic
        public DateTime Time { get; set; }
16 6f451cc1 lbihannic
        public int TypeComportementId { get; set; }
17
        [ForeignKey("TypeComportementId")]
18 957bebf1 lbihannic
        public TypeComportement Type { get; set; }
19 65ad7e66 Lucas Bihannic
        public string? Commentaire { get; set; }
20 6f451cc1 lbihannic
        #endregion
21 957bebf1 lbihannic
22 6f451cc1 lbihannic
        #region Constructeurs
23
        public Comportement() { }
24 957bebf1 lbihannic
        public Comportement(DateTime Time, TypeComportement Type, string Commentaire)
25
        {
26
            this.Time = Time;
27 9601eaf0 lbihannic
            this.Type = Type;
28 957bebf1 lbihannic
            this.Commentaire = Commentaire;
29
        }
30 6f451cc1 lbihannic
        #endregion
31 65ad7e66 Lucas Bihannic
    }
32
}