Export (0) Print
Expand All

DbChangeTracker.DetectChanges Method

Entity Framework 5.0

Detects changes made to the properties and relationships of POCO entities. Note that some types of entities (such as change tracking proxies and entities that derive from EntityObject) report changes automatically and a call to this method is not normally needed for these types of entities. Also note that normally this method is called automatically by many of the methods of DbContext and its related classes such that it is rare that this method needs to be called explicitly. However, it may be desirable, usually for performance reasons, to turn off this automatic calling of this method, using the AutoDetectChangesEnabled flag from Configuration.

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

'Declaration
Public Sub DetectChanges
'Usage
Dim instance As DbChangeTracker

instance.DetectChanges()
Show:
© 2014 Microsoft