From 177aa6f1c4601e4fb34aff04c4e328c98b489888 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期四, 07 八月 2025 10:17:14 +0800 Subject: [PATCH] fix:bug --- FlexJobApi.Core/Entities/Common/DictionaryData.cs | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/FlexJobApi.Core/Entities/Common/DictionaryData.cs b/FlexJobApi.Core/Entities/Common/DictionaryData.cs index 5b55b65..ca477ff 100644 --- a/FlexJobApi.Core/Entities/Common/DictionaryData.cs +++ b/FlexJobApi.Core/Entities/Common/DictionaryData.cs @@ -13,11 +13,11 @@ /// <summary> /// 瀛楀吀鏁版嵁 /// </summary> - public class DictionaryData : CommonEntity, IEntityTypeBuilder<DictionaryData> + public class DictionaryData : CommonEntity, IEntityTypeBuilder<DictionaryData>, ITreeData<DictionaryData>, IIsDisabled { public DictionaryData() { - Childrens = []; + Children = []; } /// <summary> @@ -43,7 +43,12 @@ /// <summary> /// 涓嬬骇 /// </summary> - public List<DictionaryData> Childrens { get; set; } + public List<DictionaryData> Children { get; set; } + + /// <summary> + /// 瀛楀吀璺緞 + /// </summary> + public string Path { get; set; } /// <summary> /// 缂栧彿 @@ -82,10 +87,15 @@ /// </summary> public string Field5 { get; set; } + /// <summary> + /// 鏄惁绂佺敤 + /// </summary> + public bool IsDisabled { get; set; } + public void Configure(EntityTypeBuilder<DictionaryData> entityBuilder, DbContext dbContext, Type dbContextLocator) { entityBuilder - .HasMany(x => x.Childrens) + .HasMany(x => x.Children) .WithOne(x => x.Parent) .HasForeignKey(x => x.ParentId) .OnDelete(DeleteBehavior.ClientSetNull); -- Gitblit v1.9.1