QueryableExtensions.AsNoTracking Method
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | AsNoTracking(IQueryable) | Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect. |
![]() ![]() | AsNoTracking<T>(IQueryable<T>) | Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect. |
QueryableExtensions.AsNoTracking Method (IQueryable)
Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect.
Parameters
- source
-
Type:
System.Linq.IQueryable
The source query.
Return Value
Type: System.Linq.IQueryableA new query with NoTracking applied, or the source query if NoTracking is not supported.
QueryableExtensions.AsNoTracking<T> Method (IQueryable<T>)
Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect.
Parameters
- source
-
Type:
System.Linq.IQueryable<T>
The source query.
Return Value
Type: System.Linq.IQueryable<T>A new query with NoTracking applied, or the source query if NoTracking is not supported.
Type Parameters
- T
The element type.