修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
09e70b9f21
commit
a9efd85aec
|
@ -30,9 +30,9 @@ public class TrialTrianingRecordAddOrEdit
|
|||
|
||||
public bool IsAuthorizedView { get; set; }
|
||||
|
||||
public string Note { get; set; }
|
||||
|
||||
public int State { get; set; }
|
||||
public string Note { get; set; }=string.Empty;
|
||||
|
||||
public int? State { get; set; }
|
||||
|
||||
public TrialFileDto? TrialFileRecord { get; set; }
|
||||
|
||||
|
@ -42,11 +42,11 @@ public class TrialTrianingRecordAddOrEdit
|
|||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public int TrianingCount { get; set; }
|
||||
public int? TrianingCount { get; set; }
|
||||
|
||||
public DateOnly TrianingDate { get; set; }
|
||||
|
||||
public int TrianingState { get; set; }
|
||||
public int? TrianingState { get; set; }
|
||||
}
|
||||
|
||||
public class TrialTrianingRecordQuery : PageInput
|
||||
|
|
|
@ -153,15 +153,15 @@ public class TrialTrianingRecord : BaseFullAuditEntity
|
|||
#region 培训记录相关字段
|
||||
public DateOnly TrianingDate { get; set; }
|
||||
|
||||
public int TrianingCount { get; set; }
|
||||
public int? TrianingCount { get; set; }
|
||||
|
||||
[Comment("培训效果")]
|
||||
public int TrianingState { get; set; }
|
||||
public int? TrianingState { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region 文件控制
|
||||
public int State { get; set; }
|
||||
public int? State { get; set; }
|
||||
|
||||
[Comment("是否授权查看")]
|
||||
public bool IsAuthorizedView { get; set; }
|
||||
|
@ -175,7 +175,7 @@ public class TrialTrianingRecord : BaseFullAuditEntity
|
|||
[Comment("历史文件")]
|
||||
public Guid? HistoryFileRecordId { get; set; }
|
||||
|
||||
public string Note { get; set; }
|
||||
public string Note { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
|
|
19147
IRaCIS.Core.Infra.EFCore/Migrations/20250304095741_TrianingRecordNull.Designer.cs
generated
Normal file
19147
IRaCIS.Core.Infra.EFCore/Migrations/20250304095741_TrianingRecordNull.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,76 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TrianingRecordNull : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "TrianingState",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "培训效果",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "培训效果");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "TrianingCount",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "State",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "TrianingState",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "培训效果",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "培训效果");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "TrianingCount",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "State",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -13158,7 +13158,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)");
|
||||
|
||||
b.Property<int>("State")
|
||||
b.Property<int?>("State")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<Guid?>("TrialFileRecordId")
|
||||
|
@ -13172,13 +13172,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
b.Property<Guid>("TrialId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("TrianingCount")
|
||||
b.Property<int?>("TrianingCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateOnly>("TrianingDate")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<int>("TrianingState")
|
||||
b.Property<int?>("TrianingState")
|
||||
.HasColumnType("int")
|
||||
.HasComment("培训效果");
|
||||
|
||||
|
|
Loading…
Reference in New Issue