I have a parser(mamba operation) and I need to disable the Audit Trail functionality on start of parser, and enable it again when it ends.
How can I accomplish this? Any help would be appreciated.
I have a parser(mamba operation) and I need to disable the Audit Trail functionality on start of parser, and enable it again when it ends.
How can I accomplish this? Any help would be appreciated.
You can disabled it like this:
CommonLib.DataContext.ExecuteInUnitOfWork(obj => {
//place your code here
});
I think that the method for disabling audit trail is the ExecuteWithoutAuditTrail. Write something like this:
CommonLib.DataContext.ExecuteWithoutAuditTrail(manager => {
//write your code here
return manager;
});