ChangeTrackingEntity Class

This serves as an abstract base class for entity types that require change tracking notifications

Definition

Namespace: EWSoftware.EntityFramework
Assembly: EWSoftware.EntityFramework (in EWSoftware.EntityFramework.dll) Version: 2025.11.12.0
public abstract class ChangeTrackingEntity : INotifyPropertyChanging, 
	INotifyPropertyChanged
Inheritance
Object    ChangeTrackingEntity
Implements
INotifyPropertyChanged, INotifyPropertyChanging

Remarks

Properties in derived classes can call SetWithNotifyT(T, T, String) to raise the PropertyChanging event before and PropertyChanged event after changing the property value.

Constructors

ChangeTrackingEntityInitializes a new instance of the ChangeTrackingEntity class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
SetWithNotifyT This is used to raise the PropertyChanging and PropertyChanged events if the new value does not equal the current property's value
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

PropertyChangedOccurs when a property value changes.
PropertyChangingOccurs when a property value is changing.

Extension Methods

ToNullableT This is used to convert objects to null values if they are equal to null, DBNull.Value, or the default value for the given type.
(Defined by DatabaseExtensions)
ToStringOrNull This is used to convert an object to a string and return either the string value if not empty, or null if it is an empty string.
(Defined by DatabaseExtensions)

See Also