The include
does not work after I perform a select on the IQueryable
query.
Is there a way around this? My query is
public IQueryab
Here's an explanation of what's happening, with a workaround.
In your case, however, I think there's a better workaround than what's in that linked article. You're already using a view model for Network
. That's good! Do it for contact (and it's related properties), too, and your problems with eager loading will magically go away. Projection always works.