Dotnet-Project Framework documentation.

GenericDataHelper.ExecuteScalarTransactional Method (String)

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

public static object ExecuteScalarTransactional(
   string spName
);

Parameters

spName
The stored procedure name

Return Value

An object containing the value in the 1x1 resultset generated by the command

Example

int orderCount = (int)ExecuteScalar("GetOrderCount");

See Also

GenericDataHelper Class | DotnetProject.Data Namespace | GenericDataHelper.ExecuteScalarTransactional Overload List