| ControllerBaseDoInTransactionT Method (ControllerBaseActionWithResultT) |
Executes an action in a transaction and returns the result.
If no current connection and/or transaction exists, it will establish it and commit and close it afterwards.
An existing connection/transaction will be reused.
Inside the action, the connection is available as
DbConnection and
the transaction as
DbTransaction.
Namespace:
Omada.OE.AppLogic
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic virtual T DoInTransaction<T>(
ControllerBaseActionWithResult<T> action
)
Parameters
- action
- Type: Omada.OE.AppLogicControllerBaseActionWithResultT
The action to execute
Type Parameters
- T
- The return type of the action
Return Value
Type:
TThe result of the action
See Also