Compare commits

...

3 Commits

View File

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