Join to other table in LINQKit Predicate
hello, assume that i have a query
The
Subject
connect to Class
through the table ClassSubject
.
Due to some reasons, i cannot get the list subjects in the allClasses
LINQ, so i write this
so here is my question, when i find the class by some subjects name, like ["Ma", "Li"]
, i build a predicate with LINQKit
, it should be something like this
But it's wrong, the func in Or()
belongs to Class
, not Subject
. i need this predicate runs before the listClasses
is defined, but i don't know how to join to the table Subject
.
Can anyone please help me. Thank you!0 Replies