DbQuery<TResult>.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<TResult> AsNoTracking ();
abstract member AsNoTracking : unit -> System.Data.Entity.Infrastructure.DbQuery<'Result>
override this.AsNoTracking : unit -> System.Data.Entity.Infrastructure.DbQuery<'Result>
Public Overridable Function AsNoTracking () As DbQuery(Of TResult)

Returns

A new query with NoTracking applied.

Applies to