Manages IDbCommands and IDataReaders for an ISession.

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

Syntax

C#
public interface IBatcher : IDisposable
Visual Basic
Public Interface IBatcher _
	Inherits IDisposable
Visual C++
public interface class IBatcher : IDisposable

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