Table of Contents

Class ModelTransaction

Namespace
NMF.Models
Assembly
NMF.Models.dll

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 IModelElement

The 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

bool

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()