Eplan Platform API
Eplan.EplApi.DataModel Namespace / Transaction Class / Store Method
Example

In This Topic
    Store Method (Transaction)
    In This Topic
    This method will enable to commit the transaction and open the next transaction.
    Syntax
    public void Store()
    public:
    void Store(); 
    Example
    Example for the usage of the Store() method:
    In this example, Function f Name is set to "F1", the Description is set "generic function". The changes are stored in the project.
    Name "F2" is not committed, so it is not stored.
    using (Transaction txn = new TransactionManager().CreateTransaction())
    {
        Function f;
        f.Name = "F1";
        f.Description = "generic function";
        txn.Store();
        f.Name = "F2";
        txn.Abort();
    }
    See Also