一对多可以支持只有一个子实体的,非集合导航属性么? #1082
Answered
by
2881099
lif-enable
asked this question in
Q&A
-
类似这种关系,A.b (null 或只有一个) , freesql 能不能将其看作一对多模式 ,使用级联保存。 |
Beta Was this translation helpful? Give feedback.
Answered by
2881099
Apr 23, 2022
Replies: 3 comments
-
非集合属性,手工保存也很方便,所以没有做自动化。 因为多对一,自动级联保存很危险,比如保存 Topic,不应该把 TopicType 也保存。 然后一对一,和多对一目前没标识区分,所以就是现在这样。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lif-enable
-
有沒有类似efcore 里的owner 类型的模式 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
非集合属性,手工保存也很方便,所以没有做自动化。
因为多对一,自动级联保存很危险,比如保存 Topic,不应该把 TopicType 也保存。
然后一对一,和多对一目前没标识区分,所以就是现在这样。