Class ModelTransaction
Denotes a model transaction
public class ModelTransaction : IDisposable
- Inheritance
-
ModelTransaction
- Implements
- Inherited Members
Constructors
ModelTransaction(IModelElement)
Creates a new model transaction
public ModelTransaction(IModelElement rootElement)
Parameters
rootElement
IModelElementThe root element
Exceptions
- ArgumentNullException
Thrown if rootElement is null
Properties
IsComitted
True, if the transaction was committed, otherwise False
public bool IsComitted { get; }
Property Value
Methods
Commit()
Commits the transaction
public void Commit()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public virtual void Dispose()
Rollback()
Roll back the transaction
public void Rollback()