修复codefirst

This commit is contained in:
陈淳
2022-10-19 19:10:48 +08:00
parent 9aaf363584
commit 0755a4026a
15 changed files with 34 additions and 32 deletions

View File

@@ -11,10 +11,10 @@ namespace Yi.Framework.Model.Models
public partial class CategoryEntity:IBaseModelEntity
{
[SugarColumn(IsIgnore = true)]
public List<CategoryEntity> Children { get; set; }
public List<CategoryEntity>? Children { get; set; }
[Navigate(NavigateType.OneToMany,nameof(SpecsGroupEntity.CategoryId))]
public List<SpecsGroupEntity> SpecsGroups { get; set; }
public List<SpecsGroupEntity>? SpecsGroups { get; set; }
}
}