Database.ExecuteDataSet Method (DbCommand, DbTransaction)

Executes the command as part of the 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)

public virtual DataSet ExecuteDataSet(
	DbCommand command,
	DbTransaction transaction
)

Parameters

command
Type: System.Data.Common.DbCommand

The DbCommand to execute.

transaction
Type: System.Data.Common.DbTransaction

The IDbTransaction to execute the command within.

Return Value

A DataSet with the results of the command.
Show: