diff --git a/Thermo.Active.Database/DatabaseContext.cs b/Thermo.Active.Database/DatabaseContext.cs index 78fee65e..3fe4b659 100644 --- a/Thermo.Active.Database/DatabaseContext.cs +++ b/Thermo.Active.Database/DatabaseContext.cs @@ -44,7 +44,7 @@ namespace Thermo.Active.Database // thermo! public DbSet ProdInfo { get; set; } - + public DbSet HistorySheet { get; set; } // Create migration string public static string CONNECTION_STRING = "Server = " + "localhost" + "; Database=" + DATABASE_NAME + ";Uid=" + DATABASE_USER + ";Pwd=" + DATABASE_PWD + ";"; diff --git a/Thermo.Active.Model/DatabaseModels/HistorySheetModel.cs b/Thermo.Active.Model/DatabaseModels/HistorySheetModel.cs new file mode 100644 index 00000000..00bcf1be --- /dev/null +++ b/Thermo.Active.Model/DatabaseModels/HistorySheetModel.cs @@ -0,0 +1,31 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Thermo.Active.Model.DatabaseModels +{ + [Table("HistorySheets")] + public class HistorySheetModel + { + #region Public Properties + + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.None)] + [Column("DtEvent", Order = 0)] + public DateTime DtEvent { get; set; } + + [Column("Recipe")] + public string RecipeName { get; set; } + + [Column("FirstVal")] + public float FirstVal { get; set; } + + [Column("SecondVal")] + public float SecondVal { get; set; } + + [Column("ThirdVal")] + public float ThirdVal { get; set; } + + #endregion Public Properties + } +} \ No newline at end of file