Could you tell me how transform the query below to Linq Method version :
myResult =
from table1 in db.TABLE1
join table2 in db.TABLE2 on table1.TABLE2_ID equals table2.ID
join table3 in db.TABLE3 on table1.TABLE3_ID equals table3.ID
where table1.ACTIF == true
select new MyClass
{
T1MyField1 = table1.MyField1,
T1MyField2 = table1.MyField2,
T2MyField1 = table2.MyField1,
T2MyField2 = table2.MyField2,
T3MyField1 = table3.MyField1,
T3MyField2 = table3.MyField2,
T3MyField3 = table3.MyField3
}
Update 1: I created a predicate :
Expression<Func<IMyClass, bool>> predicate;
And I'd like apply it the the lambada but I think it's not possible with lambda syntax.