Insert method using unit of work pattern in ax 2012

public static server  void insertintocusttableusingUOWClass()
{
     UnitOfWork uow = new UnitOfWork();
    CustTable           custTable;  
    ;
    custTable.AccountNum='12347';
    custTable.CustGroup='pat';
    uow.insertonSaveChanges(custTable);
     uow.saveChanges();

}

Comments

Johnny Tsang said…
What's the benefit compared to custTable.insert()?

Popular Posts