Change Tracking Entity 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
Assembly: EWSoftware.EntityFramework (in EWSoftware.EntityFramework.dll) Version: 2025.11.12.0
C#
public abstract class ChangeTrackingEntity : INotifyPropertyChanging,
INotifyPropertyChangedVB
Public MustInherit Class ChangeTrackingEntity
Implements INotifyPropertyChanging, INotifyPropertyChangedC++
public ref class ChangeTrackingEntity abstract : INotifyPropertyChanging,
INotifyPropertyChangedF#
[<AbstractClassAttribute>]
type ChangeTrackingEntity =
class
interface INotifyPropertyChanging
interface INotifyPropertyChanged
end- 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
| ChangeTrackingEntity | Initializes a new instance of the ChangeTrackingEntity class |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates 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 |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Events
| PropertyChanged | Occurs when a property value changes. |
| PropertyChanging | Occurs 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) |