Test_IRC_Net8
he 2025-04-14 14:39:40 +08:00
parent a8a9a09f88
commit 1e1822151b
5 changed files with 19502 additions and 1 deletions

View File

@ -24,6 +24,8 @@ namespace IRaCIS.Core.Application.Contracts
public string FileFormat { get; set; } public string FileFormat { get; set; }
public string Name { get; set; }
public string FileName { get; set; } public string FileName { get; set; }
public string FilePath { get; set; } public string FilePath { get; set; }

View File

@ -56,6 +56,8 @@ public class SystemDocumentAttachment : BaseFullAuditEntity
/// </summary> /// </summary>
public Guid SystemDocumentId { get; set; } public Guid SystemDocumentId { get; set; }
public string Name { get; set; } = string.Empty;
/// <summary> /// <summary>
/// 文件名称 /// 文件名称
/// </summary> /// </summary>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,51 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class fimeNmae : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Name",
table: "SystemDocumentAttachment",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
defaultValue: "");
migrationBuilder.CreateIndex(
name: "IX_SystemDocumentAttachment_SystemDocumentId",
table: "SystemDocumentAttachment",
column: "SystemDocumentId");
migrationBuilder.AddForeignKey(
name: "FK_SystemDocumentAttachment_SystemDocument_SystemDocumentId",
table: "SystemDocumentAttachment",
column: "SystemDocumentId",
principalTable: "SystemDocument",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_SystemDocumentAttachment_SystemDocument_SystemDocumentId",
table: "SystemDocumentAttachment");
migrationBuilder.DropIndex(
name: "IX_SystemDocumentAttachment_SystemDocumentId",
table: "SystemDocumentAttachment");
migrationBuilder.DropColumn(
name: "Name",
table: "SystemDocumentAttachment");
}
}
}

View File

@ -17,7 +17,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "8.0.14") .HasAnnotation("ProductVersion", "8.0.15")
.HasAnnotation("Relational:MaxIdentifierLength", 128); .HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@ -9730,6 +9730,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasPrecision(18, 2) .HasPrecision(18, 2)
.HasColumnType("decimal(18,2)"); .HasColumnType("decimal(18,2)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<bool>("OffLine") b.Property<bool>("OffLine")
.HasColumnType("bit"); .HasColumnType("bit");
@ -9746,6 +9751,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("CreateUserId"); b.HasIndex("CreateUserId");
b.HasIndex("SystemDocumentId");
b.ToTable("SystemDocumentAttachment", t => b.ToTable("SystemDocumentAttachment", t =>
{ {
t.HasComment("后台 - 系统签署文档附件"); t.HasComment("后台 - 系统签署文档附件");
@ -17339,7 +17346,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.OnDelete(DeleteBehavior.Cascade) .OnDelete(DeleteBehavior.Cascade)
.IsRequired(); .IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument")
.WithMany("SystemDocumentAttachmentList")
.HasForeignKey("SystemDocumentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CreateUserRole"); b.Navigation("CreateUserRole");
b.Navigation("SystemDocument");
}); });
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b =>
@ -19232,6 +19247,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Navigation("NeedConfirmedUserTypeList"); b.Navigation("NeedConfirmedUserTypeList");
b.Navigation("SystemDocConfirmedUserList"); b.Navigation("SystemDocConfirmedUserList");
b.Navigation("SystemDocumentAttachmentList");
}); });
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b => modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b =>