demo20230512/Migrations/202211210132449_updateLCA.cs

21 lines
730 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class updateLCA : DbMigration
{
public override void Up()
{
DropForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.OrganizationLCA");
AddForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.LCAs", "ID", cascadeDelete: true);
}
public override void Down()
{
DropForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.LCAs");
AddForeignKey("dbo.OrganizationLCAFabSurveyForm_OtherCompounds", "LCAID", "dbo.OrganizationLCA", "ID");
}
}
}