Added Migration

This commit is contained in:
Thermo_SIM
2021-03-22 14:24:34 +01:00
parent 29057c5431
commit 36dc4171e5
4 changed files with 174 additions and 3 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 addedTypeValHistory : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(addedTypeValHistory));
string IMigrationMetadata.Id
{
get { return "202103221323362_addedTypeValHistory"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}
@@ -0,0 +1,18 @@
namespace Thermo.Active.Database.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class addedTypeValHistory : DbMigration
{
public override void Up()
{
AddColumn("dbo.HistorySheets", "TypeVal", c => c.Int(nullable: false));
}
public override void Down()
{
DropColumn("dbo.HistorySheets", "TypeVal");
}
}
}
File diff suppressed because one or more lines are too long
@@ -30,11 +30,9 @@ namespace Thermo.Active.Model.DatabaseModels
public float ThirdVal { get; set; }
[Column("TypeVal")]
public ushort TypeVal { get; set; }
public int TypeVal { get; set; }
#endregion Public Properties
}
}