DbSqlQuery<TEntity>.AsNoTracking Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

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 virtual DbSqlQuery<TEntity> AsNoTracking()

Return Value

Type: System.Data.Entity.Infrastructure.DbSqlQuery<TEntity>
A new query with NoTracking applied.