Export (0) Print
Expand All

DbQuery.AsNoTracking Method

Entity Framework 5.0

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

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

'Declaration
Public MustOverride Function AsNoTracking As DbQuery
'Usage
Dim instance As DbQuery 
Dim returnValue As DbQuery 

returnValue = instance.AsNoTracking()

Return Value

Type: System.Data.Entity.Infrastructure.DbQuery
A new query with NoTracking applied.
Show:
© 2014 Microsoft