Database.LoadDataSet Method (String, DataSet, array<String[], array<Object[])
Loads a DataSet with the results returned from a stored procedure.
Namespace: Microsoft.Practices.EnterpriseLibrary.Data
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public virtual void LoadDataSet(
string storedProcedureName,
DataSet dataSet,
string[] tableNames,
params Object[] parameterValues
)
'Declaration
Public Overridable Sub LoadDataSet (
storedProcedureName As String,
dataSet As DataSet,
tableNames As String(),
ParamArray parameterValues As Object()
)
public:
virtual void LoadDataSet(
String^ storedProcedureName,
DataSet^ dataSet,
array<String^>^ tableNames,
... array<Object^>^ parameterValues
)
Parameters
storedProcedureName
Type: System.StringThe stored procedure name to execute.
dataSet
Type: System.Data.DataSetThe DataSet to fill.
tableNames
Type: array<System.String[]An array of table name mappings for the DataSet.
parameterValues
Type: array<System.Object[]An array of paramters to pass to the stored procedure. The parameter values must be in call order as they appear in the stored procedure.