Export (0) Print
Expand All

DbChangeTracker Class

Entity Framework 5.0

Returned by the ChangeTracker method of DbContext to provide access to features of the context that are related to change tracking of entities.

System.Object
  System.Data.Entity.Infrastructure.DbChangeTracker

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

public class DbChangeTracker

The DbChangeTracker type exposes the following members.

  NameDescription
Public methodDetectChangesDetects 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.
Public methodEntries()Gets DbEntityEntry objects for all the entities tracked by this context.
Public methodEntries<TEntity>()Gets DbEntityEntry objects for all the entities of the given type tracked by this context.
Public methodEqualsReturns whether the specified tracker is equal to the current tracker. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash function for the specified tracker. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type for the current tracker.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string representation of the tracker. (Overrides Object.ToString().)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft