From 11df33a495b44f60192d2dd35625e3cba1f86d19 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Fri, 29 Apr 2022 15:28:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E5=87=86=E8=A1=A8?= =?UTF-8?q?=E5=9F=BA=E7=B1=BB=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DatabaseDefinitions/SugarTableBase.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarTableBase.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarTableBase.cs index 6eabec9..49b9ad8 100644 --- a/Falcon.SugarApi/DatabaseDefinitions/SugarTableBase.cs +++ b/Falcon.SugarApi/DatabaseDefinitions/SugarTableBase.cs @@ -17,23 +17,23 @@ namespace Falcon.SugarApi.DatabaseDefinitions /// /// 创建人 /// - [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = false, ColumnDescription = "首次创建人")] - public string CreateBy { get; set; } + [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "首次创建人")] + public string? CreateBy { get; set; } /// /// 创建时间 /// - [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = false, ColumnDescription = "首次创建时间")] - public DateTime CreateTime { get; set; } = DateTime.Now; + [SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "首次创建时间")] + public DateTime? CreateTime { get; set; } = DateTime.Now; /// /// 更新人 /// - [SugarColumn(IsNullable = false, ColumnDescription = "最近更新人")] - public string UpdateBy { get; set; } + [SugarColumn(IsNullable = true, ColumnDescription = "最近更新人")] + public string? UpdateBy { get; set; } /// /// 更新时间 /// - [SugarColumn(IsNullable = false, ColumnDescription = "最新更新时间")] - public DateTime UpdateTime { get; set; } = DateTime.Now; + [SugarColumn(IsNullable = true, ColumnDescription = "最新更新时间")] + public DateTime? UpdateTime { get; set; } = DateTime.Now; /// /// 记录状态 ///