API Help
Eplan.EplApi.DataModel Namespace / Transaction Class
Members Example

In This Topic
    Transaction Class
    In This Topic
    Class representing DataModel's transaction. It implements System.IDisposable interface. Must be disposed immediately after transaction's end.
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.DataModel.ITransaction
          Eplan.EplApi.DataModel.Transaction

    Syntax
    public sealed class Transaction : ITransaction 
    public ref class Transaction sealed : public ITransaction 
    Remarks
    For details, please refer to Transactions chapter of API Help.
    Example
    Transaction usage - only inside "using".
    using (Transaction txn = new TransactionManager().CreateTransaction())
    {
        Function f;
        f.Name = "F1";
        txn.Commit();
    }
    Public Properties
     NameDescription
    Public PropertyTransaction property which returns true if an implicit Eplan transaction was started and finished during lifetime of current transaction.  
    Top
    Public Methods
     NameDescription
    Public MethodAborts the transaction. Cannot be called more than one time for given transaction.  
    Public MethodOverridden. Commits the transaction. Cannot be called more than one time for given transaction.  
    Public MethodDestructor for deterministic finalization of Transaction object. (Inherited from Eplan.EplApi.DataModel.ITransaction)
    Public MethodThis method will enable to commit the transaction, and \internal open the next transaction.  
    Top
    See Also