Skip to content

Latest commit

 

History

History
119 lines (81 loc) · 2.68 KB

File metadata and controls

119 lines (81 loc) · 2.68 KB

SqlHelper.ExecuteScalar method (1 of 4)

namespace: Serenity.Data   assemblySerenity.Net.Data

Executes the statement returning a scalar value.

public static object ExecuteScalar(IDbConnection connection, SqlQuery selectQuery, 
    ILogger logger = null)
parameter description
connection The connection.
selectQuery The select query.
logger Logger

Return Value

Scalar value

Exceptions

exception condition
ArgumentNullException selectQuery is null

See Also


SqlHelper.ExecuteScalar method (2 of 4)

namespace: Serenity.Data   assemblySerenity.Net.Data

Executes the statement returning a scalar value.

public static object ExecuteScalar(IDbConnection connection, string commandText, 
    ILogger logger = null)
parameter description
connection The connection.
commandText The command text.
logger Logger

Return Value

Scalar value

See Also


SqlHelper.ExecuteScalar method (3 of 4)

namespace: Serenity.Data   assemblySerenity.Net.Data

Executes the statement returning a scalar value.

public static object ExecuteScalar(IDbConnection connection, SqlQuery selectQuery, 
    Dictionary<string, object> param, ILogger logger = null)
parameter description
connection The connection.
selectQuery The select query.
param The parameters.
logger Logger

Return Value

Scalar value

Exceptions

exception condition
ArgumentNullException selectQuery is null

See Also


SqlHelper.ExecuteScalar method (4 of 4)

namespace: Serenity.Data   assemblySerenity.Net.Data

Executes the statement returning a scalar value.

public static object ExecuteScalar(IDbConnection connection, string commandText, 
    IDictionary<string, object> param, ILogger logger = null)
parameter description
connection The connection.
commandText The command text.
param The parameters.
logger Logger

Exceptions

exception condition
ArgumentNullException connection

See Also