Dotnet-Project Framework documentation.

GenericDataHelper.ExecuteScalar Method

Execute a Command (that returns a 1x1 resultset and takes no parameters) against the database.

Overload List

Execute a Command (that returns a 1x1 resultset and takes no parameters) against the database.

public static object ExecuteScalar(CommandType,string);

Execute a Command (that returns a 1x1 resultset) against the database using the provided parameters.

public static object ExecuteScalar(CommandType,string,params IDataParameter[]);

Execute a stored procedure via a Command (that returns a 1x1 resultset and takes no parameters) against the database.

public static object ExecuteScalar(string);

Execute a stored procedure via a Command (that returns a 1x1 resultset) against the database using the provided parameters.

public static object ExecuteScalar(string,params IDataParameter[]);

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.

public static object ExecuteScalar(string,params object[]);

See Also

GenericDataHelper Class | DotnetProject.Data Namespace