DbQuery.AsNoTracking Method

Definition

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

public virtual System.Data.Entity.Infrastructure.DbQuery AsNoTracking ();
abstract member AsNoTracking : unit -> System.Data.Entity.Infrastructure.DbQuery
override this.AsNoTracking : unit -> System.Data.Entity.Infrastructure.DbQuery
Public Overridable Function AsNoTracking () As DbQuery

Returns

DbQuery

A new query with NoTracking applied.

Applies to