EntityFrameworkLinqクエリの比較述語を一般的に作成する必要があります。リフレクションを使用しており、問題なく単一レベルのラムダ式を作成できます。しかし、私が行き詰まり始めているのは、関係のあるエンティティがあります
public class Parent {
public virtual Child child { get; set; }
.... Other Stuff...
}
public class Child {
public int property { get; set; }
public virtual Parent parent { get; set; }
.... Other Stuff.....
}
「Child.property」をReflectionに渡して、比較するラムダ式を作成し、item => item.Child.property == valueに似たラムダ式を作成するにはどうすればよいですか?