Execute a stored procedure via a Command (that returns a 1x1 resultset) against the database 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.
An object containing the value in the 1x1 resultset generated by the command
This method provides no access to output parameters or the stored procedure's return value parameter.
int orderCount = (int)ExecuteScalar("GetOrderCount", 24, 36);
GenericDataHelper Class | DotnetProject.Data Namespace | GenericDataHelper.ExecuteScalar Overload List