シナリオ、コンポーネント、ブロックの 3 つのテーブルがあります。Blocks には ComponentId への外部キーがあり、Components には Scenarios への外部キーがあります。
Blocks には、別のテーブル TreeStructures への外部キー (TreeStructureId) もあります。
さて、なぜこれが機能するのですか:
ObjectQuery<Blocks> blocks = edumatic3Entities.Blocks.Include("TreeStructures").Include("Components.Scenarios");
TreeStructures、Components、および Scenarios をロードします。
ただし、これは機能しません。
ObjectQuery<Blocks> blocks = edumatic3Entities.Blocks.Include("Components.Scenarios").Include("TreeStructures");
これにより、コンポーネントとシナリオが読み込まれますが、TreeStructures は読み込まれません...
私には非常に奇妙に思えます...これはなぜですか?
thx、リーベン・カルドエン