наконец то создали бд
This commit is contained in:
parent
c7aedaee87
commit
0b21b9f559
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user