Take the 2-minute tour ×

i am trying to write a query using eSQL where in my entity has got navigation properties. i am not able to include these navigation properties in the query. Like in Linq to SQL we have this .Include method, how will it be possible in eSQL?

share|improve this question
add comment

1 Answer

Like so:

string esql = "Select value e from EFEntities.MyDataEntity as e";

ObjectQuery<Data.MyDataEntity> query = c.

List<Data.MyDataEntity> entities = query.ToList();
share|improve this answer
add comment

Your Answer


