Dotnet-Project Framework documentation.

GenericDataHelper.FillDataset Method (CommandType, String, DataSet, String[])

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

public static void FillDataset(
   CommandType commandType,
   string commandText,
   DataSet dataSet,
   string[] tableNames
);

Parameters

commandType
The CommandType (stored procedure, text, etc.)
commandText
The stored procedure name or T-SQL command
dataSet
A dataset wich will contain the resultset generated by the command
tableNames
This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name)

Example

FillDataset(CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"});

See Also

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