Manages IDbCommands and IDataReaders for an ISession.

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

Syntax

Visual Basic (Declaration)
Public Interface IBatcher _
	Implements IDisposable
C#
public interface IBatcher : IDisposable
Visual C++
public interface class IBatcher : IDisposable
JavaScript
NHibernate.Engine.IBatcher = function();
NHibernate.Engine.IBatcher.createInterface('NHibernate.Engine.IBatcher');

Remarks

Abstracts ADO.NET batching to maintain the illusion that a single logical batch exists for the whole session, even when batching is disabled. Provides transparent IDbCommand caching.

This will be useful once ADO.NET gets support for batching. Until that point no code exists that will do batching, but this will provide a good point to do error checking and making sure the correct number of rows were affected.

See Also