demo20230512/Migrations/202212260158333_addTableMasterialComposite.cs

34 lines
1.3 KiB
C#
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
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");
}
}
}