The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v19.2.dll

Declaration

[Browsable(false)]
public bool TrackingChanges { get; }
<Browsable(False)>
Public ReadOnly Property TrackingChanges As Boolean
[Browsable(false)]
public bool TrackingChanges { get; }
<Browsable(False)>
Public ReadOnly Property TrackingChanges As Boolean

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.

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