This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user