root / GES_PAC / Model / Mesure.cs @ 6f451cc1
Historique | Voir | Annoter | Télécharger (906 octets)
1 |
|
---|---|
2 |
using SQLite; |
3 |
using System.ComponentModel.DataAnnotations.Schema; |
4 |
|
5 |
namespace GES_PAC.Model |
6 |
{ |
7 |
public class Mesure : IMesureBase |
8 |
{ |
9 |
#region Propri?t?s |
10 |
[PrimaryKey, AutoIncrement] |
11 |
public int Id { get; set; } |
12 |
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 |
public int SerieAnimalId { get; set; } |
17 |
[ForeignKey("SerieAnimalId")] |
18 |
public SerieAnimal SerieAnimal { get; set; } |
19 |
#endregion |
20 |
|
21 |
#region Constructeurs |
22 |
public Mesure() { } |
23 |
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 |
#endregion |
31 |
} |
32 |
} |