Delete Using Unit of Work Pattern in AX 2012
public static server void insertintocusttableusingUOWClass()
{
UnitOfWork uow = new UnitOfWork();
CustTable custTable;
;
select *
from custTable
where custTable.AccountNum == '12347';
uow.deleteonSaveChanges(custTable);
uow.saveChanges();
}
{
UnitOfWork uow = new UnitOfWork();
CustTable custTable;
;
select *
from custTable
where custTable.AccountNum == '12347';
uow.deleteonSaveChanges(custTable);
uow.saveChanges();
}
*This post is locked for comments