修改数据库结构
parent
2e539dfa71
commit
2a4360cc64
|
@ -44,7 +44,7 @@ public class TrialTrianingRecordAddOrEdit
|
|||
|
||||
public int? TrianingCount { get; set; }
|
||||
|
||||
public DateOnly TrianingDate { get; set; }
|
||||
public DateOnly? TrianingDate { get; set; }
|
||||
|
||||
public int? TrianingState { get; set; }
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ public class TrialTrianingRecord : BaseFullAuditEntity
|
|||
public Guid TrialFileTypeId { get; set; }
|
||||
|
||||
#region 培训记录相关字段
|
||||
public DateOnly TrianingDate { get; set; }
|
||||
public DateOnly? TrianingDate { get; set; }
|
||||
|
||||
public int? TrianingCount { get; set; }
|
||||
|
||||
|
|
19147
IRaCIS.Core.Infra.EFCore/Migrations/20250305032415_trialDateOnly.Designer.cs
generated
Normal file
19147
IRaCIS.Core.Infra.EFCore/Migrations/20250305032415_trialDateOnly.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class trialDateOnly : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<DateOnly>(
|
||||
name: "TrianingDate",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "date",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateOnly),
|
||||
oldType: "date");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<DateOnly>(
|
||||
name: "TrianingDate",
|
||||
table: "TrialTrianingRecord",
|
||||
type: "date",
|
||||
nullable: false,
|
||||
defaultValue: new DateOnly(1, 1, 1),
|
||||
oldClrType: typeof(DateOnly),
|
||||
oldType: "date",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -13175,7 +13175,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
b.Property<int?>("TrianingCount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateOnly>("TrianingDate")
|
||||
b.Property<DateOnly?>("TrianingDate")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<int?>("TrianingState")
|
||||
|
|
Loading…
Reference in New Issue