Second Commit

This commit is contained in:
Thermo_SIM
2021-03-19 17:11:18 +01:00
parent 539ed2508d
commit d01fcf7578
5 changed files with 192 additions and 0 deletions
@@ -0,0 +1,29 @@
// <auto-generated />
namespace Thermo.Active.Database.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
public sealed partial class HistorySheets : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(HistorySheets));
string IMigrationMetadata.Id
{
get { return "202103191608500_HistorySheets"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}
@@ -0,0 +1,29 @@
namespace Thermo.Active.Database.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class HistorySheets : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.HistorySheets",
c => new
{
DtEvent = c.DateTime(nullable: false, precision: 0),
Recipe = c.String(unicode: false),
FirstVal = c.Single(nullable: false),
SecondVal = c.Single(nullable: false),
ThirdVal = c.Single(nullable: false),
})
.PrimaryKey(t => t.DtEvent);
}
public override void Down()
{
DropTable("dbo.HistorySheets");
}
}
}
File diff suppressed because one or more lines are too long
@@ -158,6 +158,10 @@
<Compile Include="Migrations\202102171753226_Added_ThermoImage_prodInfo.Designer.cs">
<DependentUpon>202102171753226_Added_ThermoImage_prodInfo.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\202103191608500_HistorySheets.cs" />
<Compile Include="Migrations\202103191608500_HistorySheets.Designer.cs">
<DependentUpon>202103191608500_HistorySheets.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Redis\redUtil.cs" />
@@ -212,6 +216,9 @@
<EmbeddedResource Include="Migrations\202102171753226_Added_ThermoImage_prodInfo.resx">
<DependentUpon>202102171753226_Added_ThermoImage_prodInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\202103191608500_HistorySheets.resx">
<DependentUpon>202103191608500_HistorySheets.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -85,6 +85,7 @@
<Compile Include="DatabaseModels\AlarmNoteModel.cs" />
<Compile Include="DatabaseModels\AlarmOccurrencesModel.cs" />
<Compile Include="DatabaseModels\AlarmUserModel.cs" />
<Compile Include="DatabaseModels\HistorySheetModel.cs" />
<Compile Include="DatabaseModels\FavoriteUserSoftKeyModel.cs" />
<Compile Include="DatabaseModels\FunctionAccessModel.cs" />
<Compile Include="ConfigModels\MessageModel.cs" />