Commits all statements that have been executed after the Begin() call. The database connection is closed after the transaction has been committed.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
public void Commit()
Visual Basic
Public Sub Commit
Visual C++
public:
void Commit()

Examples

CopyC#
Public Sub Shadows Save()

    Mybase.ParentDatabase.Transactions.Begin()

    MyBase.Save
    Me.Details.Save

    'Execute any other statements here via
    'MyBase.ParentDatabase.Transactions.Execute()...

    Mybase.ParentDatabase.Transactions.Commit()

End sub

See Also