Statistiques
| Branche: | Révision:

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

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

1

    
2
using SQLite;
3
using System.ComponentModel.DataAnnotations.Schema;
4

    
5
namespace GES_PAC.Model
6
{
7
    public class Comportement
8
    {
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; }
15
        public DateTime Time { get; set; }
16
        public int TypeComportementId { get; set; }
17
        [ForeignKey("TypeComportementId")]
18
        public TypeComportement Type { get; set; }
19
        public string? Commentaire { get; set; }
20
        #endregion
21

    
22
        #region Constructeurs
23
        public Comportement() { }
24
        public Comportement(DateTime Time, TypeComportement Type, string Commentaire)
25
        {
26
            this.Time = Time;
27
            this.Type = Type;
28
            this.Commentaire = Commentaire;
29
        }
30
        #endregion
31
    }
32
}