Browse Source

增加字典值关联

Signed-off-by: skywolf627 <skywolf627@qq.com>
skywolf627 2 years ago
parent
commit
c6b385ac86
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Admin.NET/Admin.NET.Core/Entity/SysDictType.cs

+ 7 - 1
Admin.NET/Admin.NET.Core/Entity/SysDictType.cs

@@ -1,4 +1,4 @@
-// 麻省理工学院许可证
+// 麻省理工学院许可证
 //
 // 版权所有 (c) 2021-2023 zuohuaijun,大名科技(天津)有限公司  联系电话/微信:18020030720  QQ:515096995
 //
@@ -48,4 +48,10 @@ public class SysDictType : EntityBase
     /// </summary>
     [SugarColumn(ColumnDescription = "状态")]
     public StatusEnum Status { get; set; } = StatusEnum.Enable;
+    
+    /// <summary>
+    /// 字典值集合
+    /// </summary>
+    [Navigate(NavigateType.OneToMany, nameof(SysDictData.DictTypeId))]
+    public List<SysDictData> Children { get; set; }
 }