Show / Hide Table of Contents

Class ModelTransaction

Denotes a model transaction

Inheritance
object
ModelTransaction
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Models
Assembly: NMF.Models.dll
Syntax
public class ModelTransaction : IDisposable

Constructors

| Edit this page View Source

ModelTransaction(IModelElement)

Creates a new model transaction

Declaration
public ModelTransaction(IModelElement rootElement)
Parameters
Type Name Description
IModelElement rootElement

The root element

Exceptions
Type Condition
ArgumentNullException

Thrown if rootElement is null

Properties

| Edit this page View Source

IsComitted

True, if the transaction was committed, otherwise False

Declaration
public bool IsComitted { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Commit()

Commits the transaction

Declaration
public void Commit()
| Edit this page View Source

Dispose()

Declaration
public virtual void Dispose()
| Edit this page View Source

Rollback()

Roll back the transaction

Declaration
public void Rollback()

Implements

IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX