root / GES_PAC / Model / Mesure.cs @ 3fef487c
Historique | Voir | Annoter | Télécharger (906 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 | 6f451cc1 | lbihannic | public class Mesure : IMesureBase |
8 | 65ad7e66 | Lucas Bihannic | { |
9 | 6f451cc1 | lbihannic | #region Propri?t?s |
10 | [PrimaryKey, AutoIncrement] |
||
11 | public int Id { get; set; } |
||
12 | 65ad7e66 | Lucas Bihannic | public DateTime Time { get; set; } |
13 | public double Conc_O2 { get; set; } |
||
14 | public double Conc_CO2 { get; set; } |
||
15 | public double Conc_CH4 { get; set; } |
||
16 | 6f451cc1 | lbihannic | public int SerieAnimalId { get; set; } |
17 | [ForeignKey("SerieAnimalId")] |
||
18 | public SerieAnimal SerieAnimal { get; set; } |
||
19 | #endregion |
||
20 | 5d673ce0 | Lucas Bihannic | |
21 | 6f451cc1 | lbihannic | #region Constructeurs |
22 | public Mesure() { } |
||
23 | 5d673ce0 | Lucas Bihannic | public Mesure(DateTime Time, double Conc_O2, double Conc_CO2, double Conc_CH4) |
24 | { |
||
25 | this.Time = Time; |
||
26 | this.Conc_O2 = Conc_O2; |
||
27 | this.Conc_CO2 = Conc_CO2; |
||
28 | this.Conc_CH4 = Conc_CH4; |
||
29 | } |
||
30 | 6f451cc1 | lbihannic | #endregion |
31 | 65ad7e66 | Lucas Bihannic | } |
32 | } |