Delete Using Unit of Work Pattern in AX 2012
Views (1139)
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();
}

Like
Report
*This post is locked for comments