|IAuditorRequiresTransactionForAuditEntities Method |
Method which returns true if this auditor expects to have audit entities to persist and therefore needs a transaction.
This method is called in the situation when there's no transaction going on though one should be started right before the single-statement action
in the case if the auditor has entities to save afterwards. It's recommended to return true if the auditor might have audit entities
to persist after an entity save/delete/direct update/direct delete of entities. Default: true
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 184.108.40.206 (5.3.0)
Function RequiresTransactionForAuditEntities (
actionToStart As SingleStatementQueryAction
) As Boolean
- Type: SD.LLBLGen.Pro.ORMSupportClassesSingleStatementQueryAction
The single statement action which is about to be started.
true if a transaction should be started prior to the action to perform (entity save/delete/direct update/direct delete of entities)
If false is returned and GetAuditEntitiesToSave returns 1 or more entities, a new transaction is started to save these audit entities
which means that this transaction isn't re-tryable if this transaction might fail.