using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DinerDataBaseImplement.Migrations { /// public partial class Migration01 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_Orders_Implementers_ImplementerID", table: "Orders"); migrationBuilder.AlterColumn( name: "ImplementerID", table: "Orders", type: "int", nullable: true, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AddForeignKey( name: "FK_Orders_Implementers_ImplementerID", table: "Orders", column: "ImplementerID", principalTable: "Implementers", principalColumn: "ID"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_Orders_Implementers_ImplementerID", table: "Orders"); migrationBuilder.AlterColumn( name: "ImplementerID", table: "Orders", type: "int", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "int", oldNullable: true); migrationBuilder.AddForeignKey( name: "FK_Orders_Implementers_ImplementerID", table: "Orders", column: "ImplementerID", principalTable: "Implementers", principalColumn: "ID", onDelete: ReferentialAction.Cascade); } } }