Statistiques
| Branche: | Révision:

root / GES_PAC / Model / MesureCalibration.cs @ 3fef487c

Historique | Voir | Annoter | Télécharger (1,285 ko)

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

    
4
namespace GES_PAC.Model
5
{
6
    public class MesureCalibration : IMesureBase
7
    {
8
        #region Propri?t?s
9
        [PrimaryKey, AutoIncrement]
10
        public int Id { get; set; }
11
        public DateTime Time { get; set; }
12
        public double Conc_O2 { get; set; }
13
        public double Conc_CO2 { get; set; }
14
        public double Conc_CH4 { get; set; }
15
        public int TypeCalibrationId { get; set; }
16
        [ForeignKey("TypeCalibrationId")]
17
        public TypeCalibration Type { get; set; }
18
        public string? RefBouteille { get; set; }
19
        public int CalibrationId { get; set; }
20
        [ForeignKey("CalibrationId")]
21
        public Calibration Calibration { get; set; }
22

    
23
        #endregion
24

    
25
        #region Constructeurs
26
        public MesureCalibration() { }
27
        public MesureCalibration(DateTime Time, double Conc_O2, double Conc_CO2, double Conc_CH4, TypeCalibration Type, string RefBouteille)
28
        {
29
            this.Time = Time;
30
            this.Conc_O2 = Conc_O2;
31
            this.Conc_CO2 = Conc_CO2;
32
            this.Conc_CH4 = Conc_CH4;
33
            this.Type = Type;
34
            if (Type.Value != 0)
35
            {
36
                this.RefBouteille = RefBouteille;
37
            }
38
        }
39
        #endregion
40
    }
41
}