Compare commits

..

3 Commits

View File

@ -200,13 +200,13 @@ namespace CarCenterDataBaseImplement.Migrations
column: x => x.EmployeeId,
principalTable: "Employees",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
table.ForeignKey(
name: "FK_EmployeeSales_Sales_SaleId",
column: x => x.SaleId,
principalTable: "Sales",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
});
migrationBuilder.CreateTable(
@ -226,13 +226,13 @@ namespace CarCenterDataBaseImplement.Migrations
column: x => x.PreSaleWorkId,
principalTable: "PreSaleWorks",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
table.ForeignKey(
name: "FK_PreSaleWorkSales_Sales_SaleId",
column: x => x.SaleId,
principalTable: "Sales",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
});
migrationBuilder.CreateTable(
@ -252,13 +252,13 @@ namespace CarCenterDataBaseImplement.Migrations
column: x => x.CarId,
principalTable: "Cars",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
table.ForeignKey(
name: "FK_InspectionCars_Inspections_InspectionId",
column: x => x.InspectionId,
principalTable: "Inspections",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
});
migrationBuilder.CreateTable(
@ -279,13 +279,13 @@ namespace CarCenterDataBaseImplement.Migrations
column: x => x.CarId,
principalTable: "Cars",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
table.ForeignKey(
name: "FK_EquipmentCars_Equipments_EquipmentId",
column: x => x.EquipmentId,
principalTable: "Equipments",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.NoAction);
});
migrationBuilder.CreateIndex(