可以自定义树的映射字段吗?
#1668
-
主键为Id,但是父子级关联的不是Id。请问怎么配置树查询?
} |
Beta Was this translation helpful? Give feedback.
Answered by
cn-troy
Nov 16, 2023
Replies: 1 comment
-
已经找到解决方式了. [Navigate(nameof(ParentCode), TempPrimary = nameof(BomCode))] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cn-troy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经找到解决方式了.
[Navigate(nameof(ParentCode), TempPrimary = nameof(BomCode))]
public BomInfo? Parent { get; set; }
[Navigate(nameof(ParentCode), TempPrimary = nameof(BomCode))]
public List Childs { get; set; } = new List();