//--------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner sparra // @backupOwner barryfr //--------------------------------------------------------------------- using System.Data.Objects; using System.Reflection; namespace System.Data.Objects.DataClasses { /// /// This interface is implemented by a change tracker and is used by data classes to report changes /// public interface IEntityChangeTracker { /// /// Used to report that a scalar entity property is about to change /// /// The name of the entity property that is changing void EntityMemberChanging(string entityMemberName); /// /// Used to report that a scalar entity property has been changed /// /// The name of the entity property that has changed void EntityMemberChanged(string entityMemberName); /// /// Used to report that a complex property is about to change /// /// The name of the top-level entity property that is changing /// The complex object that contains the property that is changing /// The name of the property that is changing on complexObject [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")] void EntityComplexMemberChanging(string entityMemberName, object complexObject, string complexObjectMemberName); /// /// Used to report that a complex property has been changed /// /// The name of the top-level entity property that has changed /// The complex object that contains the property that changed /// The name of the property that changed on complexObject [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")] void EntityComplexMemberChanged(string entityMemberName, object complexObject, string complexObjectMemberName); /// /// Returns the EntityState from the change tracker, or EntityState.Detached if this /// entity is not being managed by a change tracker /// EntityState EntityState { get; } } }