.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

IObjectLayerAsync.CommitChangesAsync(Session, ICollection, ICollection, CancellationToken) Method

Asynchronously commits object changes made in a specified session and notifies upon completion.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

Task CommitChangesAsync(
    Session session,
    ICollection fullListForDelete,
    ICollection completeListForSave,
    CancellationToken cancellationToken = default(CancellationToken)
)
Function CommitChangesAsync(
    session As Session,
    fullListForDelete As ICollection,
    completeListForSave As ICollection,
    cancellationToken As CancellationToken = Nothing
) As Task

Parameters

Name Type Description
session Session

A Session with pending object changes.

fullListForDelete ICollection

A collection of persistent objects to be deleted.

completeListForSave ICollection

A collection of persistent objects to be saved.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken

null

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task

A Task that commits specified object changes.

See Also