< ...>不逆向关系 [英] The inverse relationship for <...> does not reciprocate an inverse relationship
问题描述
我有具有以下关系的表A:
I have the table A with the following relationships:
Relationship Destination Inverse
input B state
output B state
并且表B具有以下关系:
And the table B with the following relationship:
Relationship Destination Inverse
state A input
我得到了警告:
state.input的反向关系不会反向关系
The inverse relationship for state.input does not reciprocate an inverse relationship
有正确的方法如何解决警告?
Is there a right way how can I fix the warning?
推荐答案
对于不同的关系,您不能具有相同的关系名称 state
。
You cannot have the same relationship name state
for different relationships on the other side.
将状态关系重命名为 inputState
和 outputState
。
Either rename the state relationships to inputState
and outputState
.
或添加一个管理此关系的实体,并使用输入/输出属性跟踪关系类型。
Or add an additional entity that manages this relationship and keeps track of the relationship type with an input/output attribute.
虽然我不推荐最后一个解决方案(太复杂),但如果 state
关系 B
应该是输入/输出不可知的。
Although I would not recommend the last solution (too complicated), you might need it if the state
relationship of B
should be input/output agnostic.
A (inOut) <----->> (as) State (b) <<--------> (state) B
这篇关于< ...>不逆向关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!