Révision 6f451cc1 GES_PAC/Model/MesureCalibration.cs
GES_PAC/Model/MesureCalibration.cs | ||
---|---|---|
1 |
using SQLite; |
|
2 |
using System.ComponentModel.DataAnnotations.Schema; |
|
1 | 3 |
|
2 | 4 |
namespace GES_PAC.Model |
3 | 5 |
{ |
4 |
public class MesureCalibration : Mesure
|
|
6 |
public class MesureCalibration : IMesureBase
|
|
5 | 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")] |
|
6 | 17 |
public TypeCalibration Type { get; set; } |
7 |
public string RefBouteille { get; set; } |
|
18 |
public string? RefBouteille { get; set; } |
|
19 |
public int CalibrationId { get; set; } |
|
20 |
[ForeignKey("CalibrationId")] |
|
21 |
public Calibration Calibration { get; set; } |
|
8 | 22 |
|
9 |
public MesureCalibration(DateTime Time, double Conc_O2, double Conc_CO2, double Conc_CH4, TypeCalibration Type, string RefBouteille) : base(Time, Conc_O2, Conc_CO2, Conc_CH4) |
|
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) |
|
10 | 28 |
{ |
29 |
this.Time = Time; |
|
30 |
this.Conc_O2 = Conc_O2; |
|
31 |
this.Conc_CO2 = Conc_CO2; |
|
32 |
this.Conc_CH4 = Conc_CH4; |
|
11 | 33 |
this.Type = Type; |
12 | 34 |
if (Type.Value != 0) |
13 | 35 |
{ |
14 | 36 |
this.RefBouteille = RefBouteille; |
15 | 37 |
} |
16 | 38 |
} |
39 |
#endregion |
|
17 | 40 |
} |
18 | 41 |
} |
Formats disponibles : Unified diff