song.jun
3 天以前 d6cc926b4bf627ce5a24ea2a16a86a842b760f75
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace sbcLabSystem.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class updateLabInfo : DbMigration
    {
        public override void Up()
        {
            CreateIndex("dbo.QCDistributionRegisterInfoes", "LabId");
            AddForeignKey("dbo.QCDistributionRegisterInfoes", "LabId", "dbo.UserRequestInfoes", "Id", cascadeDelete: true);
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.QCDistributionRegisterInfoes", "LabId", "dbo.UserRequestInfoes");
            DropIndex("dbo.QCDistributionRegisterInfoes", new[] { "LabId" });
        }
    }
}