Test_IRC_Net8
parent
a8a9a09f88
commit
1e1822151b
|
@ -24,6 +24,8 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public string FileFormat { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string FileName { get; set; }
|
||||
|
||||
public string FilePath { get; set; }
|
||||
|
|
|
@ -56,6 +56,8 @@ public class SystemDocumentAttachment : BaseFullAuditEntity
|
|||
/// </summary>
|
||||
public Guid SystemDocumentId { get; set; }
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.14")
|
||||
.HasAnnotation("ProductVersion", "8.0.15")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
@ -9730,6 +9730,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.HasPrecision(18, 2)
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)");
|
||||
|
||||
b.Property<bool>("OffLine")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
@ -9746,6 +9751,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
|
||||
b.HasIndex("CreateUserId");
|
||||
|
||||
b.HasIndex("SystemDocumentId");
|
||||
|
||||
b.ToTable("SystemDocumentAttachment", t =>
|
||||
{
|
||||
t.HasComment("后台 - 系统签署文档附件");
|
||||
|
@ -17339,7 +17346,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("IRaCIS.Core.Domain.Models.SystemDocument", "SystemDocument")
|
||||
.WithMany("SystemDocumentAttachmentList")
|
||||
.HasForeignKey("SystemDocumentId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CreateUserRole");
|
||||
|
||||
b.Navigation("SystemDocument");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b =>
|
||||
|
@ -19232,6 +19247,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
b.Navigation("NeedConfirmedUserTypeList");
|
||||
|
||||
b.Navigation("SystemDocConfirmedUserList");
|
||||
|
||||
b.Navigation("SystemDocumentAttachmentList");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SystemNotice", b =>
|
||||
|
|
Loading…
Reference in New Issue