예제 #1
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 virtual IInternalQuery <TElement> AsNoTracking()
 {
     return(new InternalQuery <TElement>(
                _internalContext, (ObjectQuery)DbHelpers.CreateNoTrackingQuery(_objectQuery)));
 }
예제 #2
0
 public virtual IInternalQuery <TElement> AsNoTracking()
 {
     return((IInternalQuery <TElement>) new InternalQuery <TElement>(this._internalContext, (System.Data.Entity.Core.Objects.ObjectQuery)DbHelpers.CreateNoTrackingQuery((System.Data.Entity.Core.Objects.ObjectQuery) this._objectQuery)));
 }