| UpdateActionArgsExecScalarResultQueryT Method |
Executes a query with a scalar result.
Namespace:
Omada.OE.AppLogic.Model
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic T ExecScalarResultQuery<T>(
string sql,
T defaultResult,
ControllerBaseScalarQueryCommandModifier commandModifier = null
)
Parameters
- sql
- Type: SystemString
- defaultResult
- Type: T
The defaultResult is returned if the query result is empty, null or can't be converted.
- commandModifier (Optional)
- Type: Omada.OE.AppLogicControllerBaseScalarQueryCommandModifier
Can be used to assign parameters to the SqlCommand.
Type Parameters
- T
Return Value
Type:
T
See Also