Executes the current IDbCommand and compares the row Count to the expectedRowCount.

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

Syntax

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

Parameters

expectation
Type: NHibernate.AdoNet..::..IExpectation
The expected number of rows affected by the query. A value of less than 0 indicates that the number of rows to expect is unknown or should not be a factor.

Implements

IBatcher..::..AddToBatch(IExpectation)

Exceptions

ExceptionCondition
NHibernate..::..HibernateException Thrown when there is an expected number of rows to be affected and the actual number of rows is different.

See Also