6 changed files with 14632 additions and 12 deletions
-
15src/Shentun.Peis.Application/OccupationalDiseases/OccupationalDiseaseAppService.cs
-
4src/Shentun.Peis.Domain/PatientOccupationalDiseases/PatientOccupationalDiseaseManager.cs
-
2src/Shentun.Peis.EntityFrameworkCore/DbMapping/PatientOccupationalDiseases/PatientOccupationalDiseaseDbMapping.cs
-
14563src/Shentun.Peis.EntityFrameworkCore/Migrations/20240522092401_init20240522001.Designer.cs
-
49src/Shentun.Peis.EntityFrameworkCore/Migrations/20240522092401_init20240522001.cs
-
5src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
14563
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240522092401_init20240522001.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,49 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class init20240522001 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "fk_patient", |
||||
|
table: "patient_occupational_disease"); |
||||
|
|
||||
|
migrationBuilder.CreateIndex( |
||||
|
name: "IX_patient_occupational_disease_patient_register_id", |
||||
|
table: "patient_occupational_disease", |
||||
|
column: "patient_register_id", |
||||
|
unique: true); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "fk_patient", |
||||
|
table: "patient_occupational_disease", |
||||
|
column: "patient_register_id", |
||||
|
principalTable: "patient_register", |
||||
|
principalColumn: "id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "fk_patient", |
||||
|
table: "patient_occupational_disease"); |
||||
|
|
||||
|
migrationBuilder.DropIndex( |
||||
|
name: "IX_patient_occupational_disease_patient_register_id", |
||||
|
table: "patient_occupational_disease"); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "fk_patient", |
||||
|
table: "patient_occupational_disease", |
||||
|
column: "id", |
||||
|
principalTable: "patient_register", |
||||
|
principalColumn: "id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue