наконец то создали бд

This commit is contained in:
antoc0der 2024-05-01 12:57:29 +04:00
parent c7aedaee87
commit 0b21b9f559

View File

@ -74,7 +74,7 @@ namespace VeterinaryDatabaseImplement.Migrations
column: x => x.DoctorId,
principalTable: "Doctors",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
@ -97,7 +97,7 @@ namespace VeterinaryDatabaseImplement.Migrations
column: x => x.OwnerId,
principalTable: "Owners",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
@ -128,7 +128,7 @@ namespace VeterinaryDatabaseImplement.Migrations
column: x => x.OwnerId,
principalTable: "Owners",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
@ -151,13 +151,13 @@ namespace VeterinaryDatabaseImplement.Migrations
column: x => x.DoctorId,
principalTable: "Doctors",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_Visits_Owners_OwnerId",
column: x => x.OwnerId,
principalTable: "Owners",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
@ -230,7 +230,7 @@ namespace VeterinaryDatabaseImplement.Migrations
column: x => x.DoctorId,
principalTable: "Doctors",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Restrict);
table.ForeignKey(
name: "FK_Services_Visits_VisitId",
column: x => x.VisitId,