Database.ExecuteDataSet Method (DbTransaction, CommandType, String)
Executes the commandText as part of the given transaction and returns the results in a new DataSet.
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 DataSet ExecuteDataSet(
DbTransaction transaction,
CommandType commandType,
string commandText
)
'Declaration
Public Overridable Function ExecuteDataSet (
transaction As DbTransaction,
commandType As CommandType,
commandText As String
) As DataSet
public:
virtual DataSet^ ExecuteDataSet(
DbTransaction^ transaction,
CommandType commandType,
String^ commandText
)
Parameters
transaction
Type: System.Data.Common.DbTransactionThe IDbTransaction to execute the command within.
commandType
Type: System.Data.CommandTypeOne of the CommandType values.
commandText
Type: System.StringThe command text to execute.
Return Value
Type: DataSet
A DataSet with the results of the commandText.