Révision 6f451cc1 GES_PAC/Model/Mesure.cs

Voir les différences:

GES_PAC/Model/Mesure.cs
1 1

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

  
2 5
namespace GES_PAC.Model
3 6
{
4
    public class Mesure
7
    public class Mesure : IMesureBase
5 8
    {
6
        public long Id { get; set; }
9
        #region Propri?t?s
10
        [PrimaryKey, AutoIncrement]
11
        public int Id { get; set; }
7 12
        public DateTime Time { get; set; }
8 13
        public double Conc_O2 { get; set; }
9 14
        public double Conc_CO2 { get; set; }
10 15
        public double Conc_CH4 { get; set; }
16
        public int SerieAnimalId { get; set; }
17
        [ForeignKey("SerieAnimalId")]
18
        public SerieAnimal SerieAnimal { get; set; }
19
        #endregion
11 20

  
21
        #region Constructeurs
22
        public Mesure() { }
12 23
        public Mesure(DateTime Time, double Conc_O2, double Conc_CO2, double Conc_CH4)
13 24
        {
14 25
            this.Time = Time;
......
16 27
            this.Conc_CO2 = Conc_CO2;
17 28
            this.Conc_CH4 = Conc_CH4;
18 29
        }
30
        #endregion
19 31
    }
20 32
}

Formats disponibles : Unified diff