November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
This should be possible. The Create/Update/Delete calls all have their own transaction via the Execute() method. I'm not sure what check you are doing to see if all the Creates were successful but you should be able to wrap it in a transaction.
// Run transaction
using (TransactionScope tran = DataContext.Current.BeginTransaction())
{
PrimaryKeyId keyId = BusinessManager.Create(entityobject);
// if the entity was created then Commit the transaction for all of the objects, since this should be the root transaction ALL the objects should be created/updated/deleted
tran.Commit();
}
Is it possible to wrap Business Manager Create/Update/Delete Calls in Transaction?
e.g.
If I were to use Business Manager to Create 5 entries in my custom class. I would like to initially open a Transaction, then should an error occur Creating any of objects, do a rollback. If all Creates were a success then explicitly call a Commit.
Can this be done with Business Manager?