Added Migration
This commit is contained in:
+29
@@ -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,9 +30,7 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user