In my database three tables:
- TableA(IDTableA,...)
- TableAB(IDTableA, IDTableB,...)
- TableB(IDTableB,...)
In my entity model I have only two entities:
TableA
{
long IDTableA;
ICollection<TableB> TableB;
}
TableB
{
long IDTableB;
ICollection<TableA> TableA;
}
I would like to know hou can do the join between the both tables and a condition in the where, something like this:
select TableA.*
from TableA, TableB, TableAB
where TableA.IDTableA = TableAB-IDTableAB
and TableB.IDTableB = TableAB.TableB
and Table.MyField > 10
I know know how can do it with query syntax, but I would like to know the wat to do it with linq fluent.
Thanks.