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;
}
}

View File

@@ -39,7 +39,8 @@ namespace Dilon.Core
/// 用户登录后默认展示此系统菜单
/// </summary>
[Comment("是否默认激活")]
public string Active { get; set; }
[Column("是否默认激活", TypeName = "bit")]
public bool Active { get; set; }
/// <summary>
/// 状态(字典 0正常 1停用 2删除