Compare commits
No commits in common. "50e45e7fb39201244c8888cd7609b90fdae85ca4" and "b2185dd836b02b357af34e4adf8f7b4185e3edef" have entirely different histories.
50e45e7fb3
...
b2185dd836
@ -93,7 +93,7 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("ListSushi");
|
b.ToTable("SushiList");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("SushiBarDatabaseImplement.Models.SushiIngredient", b =>
|
modelBuilder.Entity("SushiBarDatabaseImplement.Models.SushiIngredient", b =>
|
||||||
|
@ -44,7 +44,7 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "ListSushi",
|
name: "SushiList",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<int>(type: "int", nullable: false)
|
Id = table.Column<int>(type: "int", nullable: false)
|
||||||
@ -54,7 +54,7 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_ListSushi", x => x.Id);
|
table.PrimaryKey("PK_SushiList", x => x.Id);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
@ -77,9 +77,9 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SushiIngredients_ListSushi_SushiId",
|
name: "FK_SushiIngredients_SushiList_SushiId",
|
||||||
column: x => x.SushiId,
|
column: x => x.SushiId,
|
||||||
principalTable: "ListSushi",
|
principalTable: "SushiList",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
@ -108,7 +108,7 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
name: "Ingredients");
|
name: "Ingredients");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "ListSushi");
|
name: "SushiList");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("ListSushi");
|
b.ToTable("SushiList");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("SushiBarDatabaseImplement.Models.SushiIngredient", b =>
|
modelBuilder.Entity("SushiBarDatabaseImplement.Models.SushiIngredient", b =>
|
||||||
|
@ -16,10 +16,10 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
column: "SushiId");
|
column: "SushiId");
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
name: "FK_Orders_ListSushi_SushiId",
|
name: "FK_Orders_SushiList_SushiId",
|
||||||
table: "Orders",
|
table: "Orders",
|
||||||
column: "SushiId",
|
column: "SushiId",
|
||||||
principalTable: "ListSushi",
|
principalTable: "SushiList",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ namespace SushiBarDatabaseImplement.Migrations
|
|||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.DropForeignKey(
|
migrationBuilder.DropForeignKey(
|
||||||
name: "FK_Orders_ListSushi_SushiId",
|
name: "FK_Orders_SushiList_SushiId",
|
||||||
table: "Orders");
|
table: "Orders");
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
migrationBuilder.DropIndex(
|
||||||
|
Loading…
Reference in New Issue
Block a user