项目增加字段,维护最大的检查编号

This commit is contained in:
2026-05-06 14:29:27 +08:00
parent d60229fa99
commit 74844bf9ce
6 changed files with 22234 additions and 2 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,54 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class AddTrialMaxCode : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "MaxDicomCode",
table: "Trial",
type: "int",
nullable: false,
defaultValue: 0,
comment: "最大的Dicom检查编号 整型");
migrationBuilder.AddColumn<int>(
name: "MaxNoneDicomCode",
table: "Trial",
type: "int",
nullable: false,
defaultValue: 0,
comment: "最大的NoneDicom检查编号 整型");
//migrationBuilder.AddForeignKey(
// name: "FK_Segmentation_VisitTask_VisitTaskId",
// table: "Segmentation",
// column: "VisitTaskId",
// principalTable: "VisitTask",
// principalColumn: "Id",
// onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Segmentation_VisitTask_VisitTaskId",
table: "Segmentation");
migrationBuilder.DropColumn(
name: "MaxDicomCode",
table: "Trial");
migrationBuilder.DropColumn(
name: "MaxNoneDicomCode",
table: "Trial");
}
}
}
@@ -12644,6 +12644,14 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasColumnType("nvarchar(400)")
.HasComment("主研单位");
b.Property<int>("MaxDicomCode")
.HasColumnType("int")
.HasComment("最大的Dicom检查编号 整型");
b.Property<int>("MaxNoneDicomCode")
.HasColumnType("int")
.HasComment("最大的NoneDicom检查编号 整型");
b.Property<string>("MessageFromClient")
.IsRequired()
.HasMaxLength(400)
@@ -19245,7 +19253,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.VisitTask", "VisitTask")
.WithMany()
.HasForeignKey("VisitTaskId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CreateUserRole");
b.Navigation("VisitTask");
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b =>