SqlHelper..::..ExecuteScalarAsync Method

Overload List


  Name Description
Public method Static member ExecuteScalarAsync(String, CommandType, String)
Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection string.
Public method Static member ExecuteScalarAsync(String, CommandType, String, array<SqlParameter>[]()[][])
Execute a SqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters.
Public method Static member ExecuteScalarAsync(String, String, array<Object>[]()[][])
Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public method Static member ExecuteScalarAsync(SqlConnection, CommandType, String)
Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided SqlConnection.
Public method Static member ExecuteScalarAsync(SqlConnection, CommandType, String, array<SqlParameter>[]()[][])
Execute a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection using the provided parameters.
Public method Static member ExecuteScalarAsync(SqlConnection, String, array<Object>[]()[][])
Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
Public method Static member ExecuteScalarAsync(SqlTransaction, CommandType, String)
Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided SqlTransaction.
Public method Static member ExecuteScalarAsync(SqlTransaction, CommandType, String, array<SqlParameter>[]()[][])
Execute a SqlCommand (that returns a 1x1 resultset) against the specified SqlTransaction using the provided parameters.
Public method Static member ExecuteScalarAsync(SqlTransaction, String, array<Object>[]()[][])
Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.