私は2つのテーブルを持っています。1 つはRequest
、もう 1 つは ですResponse
。各リクエストには、レコードへのnull 許容外部キー参照がありResponse
ます。
各Response
レコードには、元のエントリへのnull 非許容の外部キー参照があります。Request
このモデルのエンティティを生成しようとしていますが、エラーで検証に失敗します: Multiplicity is not valid in role Response [...]. Because the dependent role properties are not the key properties, the upper bound of the multiplicity of the dependent role must be *
.
失敗するマッピング:
リクエスト -[0..1]-> レスポンス
レスポンス -[1]-> リクエスト
なぜこれが機能しないのですか?EF が外部キーをあまり好まないことはわかっていますが、これは十分に単純に思えます。