Dotnet-Project Framework documentation.

GenericDataHelper.ExecuteDataSetTransactional Method (CommandType, String, IDataParameter[])

Execute a SqlCommand (that returns a resultset) against a Transaction using the provided parameters.

public static DataSet ExecuteDataSetTransactional(
   CommandType commandType,
   string commandText,
   params IDataParameter[] commandParameters
);

Parameters

commandType
The CommandType (stored procedure, text, etc.)
commandText
The stored procedure name or T-SQL command
commandParameters
An array of SqlParamters used to execute the command

Return Value

A dataset containing the resultset generated by the command

Example

DataSet ds = ExecuteDataset(CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24));

See Also

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