fix 默认值

This commit is contained in:
2024-03-06 19:39:14 +08:00
parent 64fbe4737d
commit 21b7ec64b2
2 changed files with 6 additions and 6 deletions

View File

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

View File

@@ -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>
/// 备注 /// 备注