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