PersistentBase.GetModificationsStore(Object) Method
In This Article
Returns an object that stores information about the modified properties when the Session.TrackPropertiesModifications option is enabled.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static IXPModificationsStore GetModificationsStore(
object theObject
)
#Parameters
Name | Type | Description |
---|---|---|
the |
Object | A persistent object that is modified. |
#Returns
Type | Description |
---|---|
IXPModifications |
An IXPModifications |
#Remarks
Use the GetModificationsStore method to access an IXPModificationsStore storage for a given persistent object Then, you can access the IXPModificationsStore methods, for instance:
XPMemberInfo miContactTitle = person.ClassInfo.GetMember("ContactTitle");
IXPModificationsStore ms = PersistentBase.GetModificationsStore(person);
var oldValue = ms.GetPropertyOldValue(miContactTitle);
See Also