Expose the batch functionality in ADO.Net 2.0 Microsoft in its wisdom decided to make my life hard and mark it internal. Through the use of Reflection and some delegates magic, I opened up the functionality. Observable performance benefits are 50%+ when used, so it is really worth it.

Namespace:  NHibernate.Impl
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public MustInherit Class DbCommandSet(Of TConnection As IDbConnection, TCommand As IDbCommand) _
	Implements IDisposable
C#
public abstract class DbCommandSet<TConnection, TCommand> : IDisposable
where TConnection : IDbConnection
where TCommand : IDbCommand
Visual C++
generic<typename TConnection, typename TCommand>
where TConnection : IDbConnection
where TCommand : IDbCommand
public ref class DbCommandSet abstract : IDisposable
JavaScript
JavaScript does not support generic types or methods.

Type Parameters

TConnection
TCommand

Inheritance Hierarchy

System..::.Object
  NHibernate.Impl..::.DbCommandSet<(Of <(TConnection, TCommand>)>)

See Also