AutoInclude() can be useful if you know that you will always need the data from the navigation property, even if you are not explicitly querying for it. If we need to ignore AutoIncluded() for a particular query with can use IgnoreAutoIncludes(). This implicitness is similar to global query filters which can also change a query.

1m read timeFrom davecallan.com
Post cover image
Table of contents
Disadvantages of using AutoInclude() in Entity Framework?Have you included navigations automatically before?You might also be interested in...

Sort: