SqlHelper..::..ExecuteScalarAsync Method (SqlConnection, CommandType, String, array<SqlParameter>[]()[][])
   Execute a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection
   using the provided parameters.
   
                
    Namespace: 
   CoreAssembly: Core (in Core.dll)
Syntax
public static Task<Object> ExecuteScalarAsync( SqlConnection connection, CommandType commandType, string commandText, params SqlParameter[] commandParameters )
Parameters
- connection
- Type: SqlConnection
 A valid SqlConnection
- commandType
- Type: CommandType
 The CommandType (stored procedure, text, etc.)
- commandText
- Type: String
 The stored procedure name or T-SQL command
- commandParameters
- Type: array<SqlParameter>[]()[][]
 An array of SqlParamters used to execute the command