Исправлены миграции

This commit is contained in:
spacyboy 2024-04-29 19:27:00 +04:00
parent 75d7be454c
commit ad971e8dde

View File

@ -200,13 +200,13 @@ namespace CarCenterDataBaseImplement.Migrations
column: x => x.EmployeeId,
principalTable: "Employees",
principalColumn: "Id",
onDelete: ReferentialAction.NoAction); // Изменено на NoAction
onDelete: ReferentialAction.NoAction);
table.ForeignKey(
name: "FK_EmployeeSales_Sales_SaleId",
column: x => x.SaleId,
principalTable: "Sales",
principalColumn: "Id",
onDelete: ReferentialAction.NoAction); // Изменено на NoAction
onDelete: ReferentialAction.NoAction);
});
migrationBuilder.CreateTable(