Delen via


EntityFrameworkQueryableExtensions.IgnoreAutoIncludes<TEntity> Method

Definition

Specifies that the current Entity Framework LINQ query should not have any model-level eager loaded navigations applied.

public static System.Linq.IQueryable<TEntity> IgnoreAutoIncludes<TEntity> (this System.Linq.IQueryable<TEntity> source) where TEntity : class;
static member IgnoreAutoIncludes : System.Linq.IQueryable<'Entity (requires 'Entity : null)> -> System.Linq.IQueryable<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function IgnoreAutoIncludes(Of TEntity As Class) (source As IQueryable(Of TEntity)) As IQueryable(Of TEntity)

Type Parameters

TEntity

The type of entity being queried.

Parameters

source
IQueryable<TEntity>

The source query.

Returns

IQueryable<TEntity>

A new query that will not apply any model-level eager loaded navigations.

Remarks

See Loading related entities for more information and examples.

Applies to