Begin a Transaction

To write data to the Repository, bracket your interactions within the scope of a transaction.

To begin a transaction

  1. Open or create the Repository into which you want to insert the information model. To open an existing Repository, use the Open method of the IRepository interface.

    -or-

    To create a new Repository, use the Create method of the IRepository interface.

    Both of these methods return the root object for the open Repository.

  2. Invoke the Begin method of the IRepositoryTransaction interface.

    The IRepositoryTransaction interface is accessible via the Transaction property of the object that represents your connection to the Repository.