Click or drag to resize
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

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: (5.3.0)
bool RequiresTransactionForAuditEntities(
	SingleStatementQueryAction actionToStart


Type: SD.LLBLGen.Pro.ORMSupportClassesSingleStatementQueryAction
The single statement action which is about to be started.

Return Value

Type: Boolean
true if a transaction should be started prior to the action to perform (entity save/delete/direct update/direct delete of entities) false otherwise.
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.
See Also