C# .NET TransactionManagers
|Top Previous Next|
The Transaction Manager is accessed from the TransactionManager property of the current database. Once a reference to the Transaction Manager is made, you can use one of the following methods to start or obtain a transaction:
So as far as I can see it is easiest to use StartOpenCloseTransation. Used like this:
using (var tr = db.TransactionManager.StartOpenCloseTransaction())
// Open the block table...
var blockTable = (BlockTable)tr.GetObject(db.BlockTableId, OpenMode.ForRead);
// So stuff...
// Change things...
// Save the changes...