This commit is contained in:
ky_sunl
2021-04-23 10:38:52 +00:00
parent d60155d02f
commit c2ed43238b
25 changed files with 120 additions and 118 deletions

View File

@@ -19,7 +19,7 @@ namespace Dilon.Core
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Comment("Id主键")]
[Column("Id主键", TypeName = "varchar(36)")]
public virtual string Id { get; set; }
public virtual string Id { get; set; } = Guid.NewGuid().ToString();
/// <summary>
/// 创建时间
@@ -66,6 +66,7 @@ namespace Dilon.Core
/// </summary>
[JsonIgnore, FakeDelete(true)]
[Comment("软删除标记")]
[Column("软删除标记", TypeName = "bit")]
public virtual bool IsDeleted { get; set; } = false;
}
}