I have a query below, but I want to perform an Include() to eager load properties. Actions has a navigation property, User (Action.User)
1) My basic query:
I use for this the LoadWith option
var dataOptions = new System.Data.Linq.DataLoadOptions(); dataOptions.LoadWith(ac => as.User); ctx.LoadOptions = dataOptions;
Thats it. ctx is your DataContext. This works for me :-)