DbChangeTracker Class
Returned by the ChangeTracker method of DbContext to provide access to features of the context that are related to change tracking of entities.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | DetectChanges() | Detects changes made to the properties and relationships of POCO entities. Note that some types of entity (such as change tracking proxies and entities that derive from EntityObject ) report changes automatically and a call to DetectChanges is not normally needed for these types of entities. Also note that normally DetectChanges is called automatically by many of the methods of DbContext and its related classes such that it is rare that this method will need to be called explicitly. However, it may be desirable, usually for performance reasons, to turn off this automatic calling of DetectChanges using the AutoDetectChangesEnabled flag from Configuration. |
![]() | Entries() | Gets DbEntityEntry objects for all the entities tracked by this context. |
![]() | Entries<TEntity>() | Gets DbEntityEntry objects for all the entities of the given type tracked by this context. |
![]() | Equals(Object) | Specifies whether the DbChangeTracker is the same as the specified object.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Gets the hash code associated with DbChangeTracker.(Overrides Object.GetHashCode().) |
![]() | GetType() | Gets the Type of the current instance. |
![]() | HasChanges() | Checks if the DbContext is tracking any new, deleted, or changed entities or relationships that will be sent to the database if SaveChanges is called. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | Returns a string representation of DbChangeTracker.(Overrides Object.ToString().) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.