Meta Data Services Programming
Begin a Transaction
To write data to a repository, bracket your interactions within the scope of a transaction.
To begin a transaction
- 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 the Repository object.
-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.
- Invoke the Begin method of the IRepositoryTransaction interface or RepositoryTransaction object.
The IRepositoryTransaction interface is accessible through the Transaction property of the object that represents your connection to the repository.
See Also
Creating Type Information Programmatically
Create a Repository Type Library