Skip to main content
.NET Framework 4.5.2+

Session.TrackingChanges Property

Indicates whether changes made to persistent objects are being tracked or a list of tracked changes is not empty.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

[Browsable(false)]
public bool TrackingChanges { get; }

Property Value

Type Description
Boolean

In sessions, true if changes made to persistent objects are currently being tracked; otherwise, false.

In units of work, true if a list of tracked changes is not empty; otherwise, false.

Remarks

Units of work (ExplicitUnitOfWork and UnitOfWork) automatically set the TrackingChanges property to true, once any change is made to a persistent object. In sessions, this property is set to true when the Session.BeginTrackingChanges method is called. Calling the Session.FlushChanges, Session.FlushChangesAsync, or Session.DropChanges method sets the TrackingChanges property back to false. In sessions, this disables tracking changes until it’s re-enabled via the Session.BeginTrackingChanges method call.

See Also