基础表的创建时间必填
This commit is contained in:
parent
14cb6627ff
commit
9ba6e0c4ac
|
@ -1,5 +1,6 @@
|
|||
using SqlSugar;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Falcon.SugarApi.DatabaseDefinitions
|
||||
{
|
||||
|
@ -16,7 +17,8 @@ namespace Falcon.SugarApi.DatabaseDefinitions
|
|||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = false, ColumnDescription = "创建时间")]
|
||||
[Required]
|
||||
[SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user