Hi. I got:
- entity1 - ID, OwnerCode
- entity2 - OwnerCode, DepartmentCode
Also I have some DepartmentCode
Now i want get something like this(sql syntax):
Select e1.ID
from entity1 e1
join entity2 e2 on e1.OwnerCode = e2.OwnerCode and e2.DepartmentCode=7
via Linq
I wrote:
var q = from e1 in entityes1
join e2 in entityes2 on e1.OwnerCode equals e2.OwnerCode ...
But how insert DepartmentCode=7 here I don't understand.