AsNoTracking Method

DbQuery<TResult>.AsNoTracking Method

Returns a new query where the entities returned will not be cached in the DbContext.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public DbQuery<TResult> AsNoTracking()

Return Value

Type: System.Data.Entity.Infrastructure.DbQuery<TResult>
A new query with NoTracking applied.
Show:
© 2016 Microsoft