我有这个实体:
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 上的所有实体 A。
我不知道我是否必须使用连接或有任何其他方式,也许使用任何或包含。
非常感谢。