I have 4 relational table;
I need linq
query included 3 table
Use Include
from b in db.ProductBrands.Include("Products.ProductImages")
where b.CategoryId == 5
select b;
Or the extension method Include.
Instead of just select b, write like this select b.col1, i.col1, b.coln, i.coln....;
The above will always return anonymous type object instead of a specific class...
Thanks