次のようなものが与えられます:
public class Parent
{
public int Id { get; set; }
public List<Child> Children { get; set; }
}
// There is no reference to the parent in the object model
public class Child
{
public int Id { get; set; }
public string MyProperty { get; set; }
}
親エンティティを読み込まずに、特定の親 ID に対して特定の条件に一致する子のみを読み込むことは可能ですか?
プロジェクションを使用して、条件に一致する親と0 個以上の子をロードするソリューションを見てきました。