34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
namespace Weee.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class addTableMasterialComposite : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
CreateTable(
|
|
"dbo.ProductLCASurveyForm_MaterialComposite",
|
|
c => new
|
|
{
|
|
ID = c.Int(nullable: false, identity: true),
|
|
materialID = c.Int(nullable: false),
|
|
materialComposite = c.String(nullable:true,unicode:true,maxLength:50),
|
|
CASNo = c.String(nullable: true, unicode: true, maxLength: 20),
|
|
compositePercentage = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|
parameterValue = c.Decimal(nullable: false, precision: 24, scale: 12),
|
|
parameterUnit = c.String(nullable: false, unicode: true, maxLength: 20),
|
|
parameterDescription = c.String(nullable: false, unicode: true),
|
|
})
|
|
.PrimaryKey(t => t.ID)
|
|
.Index(t=>t.materialID);
|
|
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
DropTable("dbo.ProductLCASurveyForm_MaterialComposite");
|
|
}
|
|
}
|
|
}
|