/// <summary>
 /// Returns a new query where the entities returned will not be cached in the <see cref="DbContext" />.
 /// </summary>
 /// <returns> A new query with NoTracking applied. </returns>
 public virtual DbQuery <TResult> AsNoTracking()
 {
     return(_internalQuery == null ? this : new DbQuery <TResult>(_internalQuery.AsNoTracking()));
 }
Beispiel #2
0
 /// <summary>
 ///     Returns a new query where the entities returned will not be cached in the <see cref="DbContext" />.
 /// </summary>
 /// <returns> A new query with NoTracking applied. </returns>
 public DbQuery <TResult> AsNoTracking()
 {
     return(new DbQuery <TResult>(_internalQuery.AsNoTracking()));
 }
Beispiel #3
0
 // <inheritdoc />
 public override DbQuery AsNoTracking()
 {
     return(new InternalDbQuery <TElement>(_internalQuery.AsNoTracking()));
 }