EntityFramework: Eager loading with excludes instead of includes?
问题 My data model has a lot of nested entities and I would like to eagerly load the whole object tree ... except for a view entities that will be explicitly loaded on demand. Using include paths I have to specify many paths and every time I add a new entity I will have to adapt those include paths. I currently use following method of my repository to load all entities of a type: public virtual IQueryable<TEntity> All(string commaSeperatedIncludePropertyPaths = "") { IQueryable<TEntity>