Does this Driver support having more than 1 open IDataReader with the same IDbConnection.

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

Syntax

C#
bool SupportsMultipleOpenReaders { get; }
Visual Basic
ReadOnly Property SupportsMultipleOpenReaders As Boolean
	Get
Visual C++
property bool SupportsMultipleOpenReaders {
	bool get ();
}

Remarks

A value of falseFalsefalsefalse (False in Visual Basic) indicates that an exception would be thrown if NHibernate attempted to have 2 IDataReaders open using the same IDbConnection. NHibernate (since this version is a close to straight port of Hibernate) relies on the ability to recursively open 2 IDataReaders. If the Driver does not support it then NHibernate will read the values from the IDataReader into an NDataReader.

A value of trueTruetruetrue (True in Visual Basic) will result in greater performance because an IDataReader can be used instead of the NDataReader. So if the Driver supports it then make sure it is set to trueTruetruetrue (True in Visual Basic).

See Also