Adds the expected row count into the batch.

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

Syntax

C#
public abstract void AddToBatch(
	IExpectation expectation
)
Visual Basic
Public MustOverride Sub AddToBatch ( _
	expectation As IExpectation _
)
Visual C++
public:
virtual void AddToBatch(
	IExpectation^ expectation
) abstract

Parameters

expectation
Type: NHibernate.AdoNet..::..IExpectation
The number of rows expected to be affected by the query.

Implements

IBatcher..::..AddToBatch(IExpectation)

Remarks

If Batching is not supported, then this is when the Command should be executed. If Batching is supported then it should hold of on executing the batch until explicitly told to.

See Also