| ControllerBaseDoInConnectionT Method (ControllerBaseActionWithResultT) |
Executes an action and returns the result.
If no current connection exists, it will establish a connection to the database and close it afterwards.
An existing connection will be reused. Inside the action, the connection is available as
DbConnection.
Namespace:
Omada.OE.AppLogic
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic virtual T DoInConnection<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