20200727160055_CraftEmployee_Hotfix_2.cs 822 B

12345678910111213141516171819202122232425
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace GreenTree.Strohrmann.ERP.Domain.Migrations
  3. {
  4. public partial class CraftEmployee_Hotfix_2 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddForeignKey(
  9. table: "CraftEmployees",
  10. name: "FK_CraftEmployees_Crafts_CraftId",
  11. column: "CraftId",
  12. principalTable: "Crafts",
  13. principalColumn: "Id",
  14. onDelete: ReferentialAction.Cascade);
  15. }
  16. protected override void Down(MigrationBuilder migrationBuilder)
  17. {
  18. migrationBuilder.DropForeignKey(
  19. table: "CraftEmployees",
  20. name: "FK_CraftEmployees_Crafts_CraftId");
  21. }
  22. }
  23. }