私はこのエンティティを持っています:
MyEntityA
{
long IDEntityA;
List<EntityB> lstEntityB;
.... (other properties);
}
MyEntityB
{
long IDEntityB;
string Name;
.... (other properties)
}
List<long> lstIDsEntitiesB; //this list has many IDs of entities B.
プロパティ lstEntitiesB に、ID が lstIDsEntitiesB にあるエンティティが 1 つ以上あるすべてのエンティティ A を取得したいと考えています。
結合を使用する必要があるかどうか、または他の方法があるかどうかはわかりません。おそらく any または contains を使用します。
本当にありがとう。