demo20230512/Migrations/202301200914596_removeFKwasteTransportPara.cs

21 lines
715 B
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 removeFKwasteTransportPara : DbMigration
{
public override void Up()
{
DropForeignKey("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterID", "dbo.NonYearlyParameters");
DropIndex("dbo.ProductLCAFabSurveyForm_WasteTransports", new[] { "ParameterID" });
}
public override void Down()
{
CreateIndex("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterID");
AddForeignKey("dbo.ProductLCAFabSurveyForm_WasteTransports", "ParameterID", "dbo.NonYearlyParameters", "ID");
}
}
}