Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsDatabase Class / CreateTransaction Method
Example

In This Topic
    CreateTransaction Method (MDPartsDatabase)
    In This Topic
    Creates a new database transaction.
    Syntax
    public MDPartsDatabaseTransaction CreateTransaction()
    public:
    MDPartsDatabaseTransaction^ CreateTransaction(); 
    Example
    MDPartsDatabaseTransaction dbTransaction = database.CreateTransaction();
    MDPart part = database.GetPart("myPart");
    if (part != null)
    {
     part.PartNr = "myNewPart";
     dbTransaction.Commit();
    }
    See Also