fix 默认值
This commit is contained in:
@@ -36,14 +36,14 @@ public class GainfoGroupEntity : SugarBaseEntity, ITenantId
|
||||
/// <summary>
|
||||
/// 是否默认分组
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "是否默认分组", ColumnDataType = "bit")]
|
||||
public bool IsDefault { get; set; }
|
||||
[SugarColumn(ColumnDescription = "是否默认分组", ColumnDataType = "bit", DefaultValue = "1")]
|
||||
public bool IsDefault { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否可编辑
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "是否可编辑", ColumnDataType = "bit")]
|
||||
public bool Editable { get; set; }
|
||||
[SugarColumn(ColumnDescription = "是否可编辑", ColumnDataType = "bit", DefaultValue = "1")]
|
||||
public bool Editable { get; set; } = true;
|
||||
|
||||
|
||||
public string TenantId { get; set; }
|
||||
|
||||
@@ -41,13 +41,13 @@ public class DeviceGroupEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
||||
/// 是否可编辑
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "bit", DefaultValue = "1", ColumnDescription = "是否可编辑")]
|
||||
public bool Editable { get; set; }
|
||||
public bool Editable { get; set; } = = true;
|
||||
|
||||
/// <summary>
|
||||
/// 可设置下级
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "bit", DefaultValue = "1")]
|
||||
public bool AbleSetNext { get; set; }
|
||||
public bool AbleSetNext { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
|
||||
Reference in New Issue
Block a user