Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsDatabaseTransaction Class
Members Example

In This Topic
    MDPartsDatabaseTransaction Class
    In This Topic
    A transaction object for a parts database
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.MasterData.MDPartsDatabaseTransaction

    Syntax
    public class MDPartsDatabaseTransaction 
    public ref class MDPartsDatabaseTransaction 
    Remarks
    working on parts database items can be done using transactions. When using transactions all changed items will be stored when calling transction.Commit(); using transctions is optional. If no transaction is used the changes will be written to the database on every changing of an MDPartsDatabaseItem object. When a MDPartsDatabaseItem will be changed on a lot of properties it's recommended to use transactions.
    Example
    MDPartsDatabaseTransaction dbTransaction = database.CreateTransaction();
    MDPart part = database.GetPart("myPart");
    if (part != null)
    {
     part.PartNr = "myNewPart";
     dbTransaction.Commit();
    }
    Public Methods
     NameDescription
    Public MethodCommit the database transaction. All changed MDPartsDatabaseItem objects will be stored in the database.  
    Public MethodDestructor for deterministic finalization of MDPartsDatabaseTransaction object.  
    Public MethodRollback the database transaction. The changes are not stored.  
    Top
    See Also