I want to set the [Transactional(TransactionalTypes.Manual)] attribute on a CommandBase object.
Now, on a normal DataPortal_Update command I would do this...
[Transactional(TransactionalTypes.Manual)]
private void DataPortal_Update()
{
...
}
So, for the CommandBase object would I simply add the attribute at the class definition or at the DataPortal_Execute() method override. I'm 99% sure that it need to be at the DataPortal_Execute() method override but just though I check first.
[Transactional(TransactionalTypes.Manual)] // THIS
private class UnlockCommand : CommandBase
{
...
[Transactional(TransactionalTypes.Manual)] // OR THIS
protected override void DataPortal_Execute()
{
...
}
}
Copyright (c) Marimer LLC