Click or drag to resize

ControllerBaseExecScalarResultQueryT Method

Executes a query with a scalar result.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
protected 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