Share via


DbSqlQuery<TEntity>.AsNoTracking Method

Definition

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

public virtual System.Data.Entity.Infrastructure.DbSqlQuery<TEntity> AsNoTracking ();
abstract member AsNoTracking : unit -> System.Data.Entity.Infrastructure.DbSqlQuery<'Entity (requires 'Entity : null)>
override this.AsNoTracking : unit -> System.Data.Entity.Infrastructure.DbSqlQuery<'Entity (requires 'Entity : null)>
Public Overridable Function AsNoTracking () As DbSqlQuery(Of TEntity)

Returns

A new query with NoTracking applied.

Applies to