AsNoTracking Method
Collapse the table of content
Expand the table of content

DbSqlQuery<TEntity>.AsNoTracking Method

Returns a new query where the results of the query will not be tracked by the associated DbContext.

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

public DbSqlQuery<TEntity> AsNoTracking()

Return Value

Type: System.Data.Entity.Infrastructure.DbSqlQuery<TEntity>
A new query with no-tracking applied.
© 2016 Microsoft