Limits the number of rows returned by the Sql query if necessary.
Namespace: NHibernate.LoaderAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
protected void SetMaxRows( IDbCommand st, RowSelection selection ) |
Visual Basic |
---|
Protected Sub SetMaxRows ( _ st As IDbCommand, _ selection As RowSelection _ ) |
Visual C++ |
---|
protected: void SetMaxRows( IDbCommand^ st, RowSelection^ selection ) |
Parameters
- st
- Type: System.Data..::..IDbCommand
The IDbCommand to limit.
- selection
- Type: NHibernate.Engine..::..RowSelection
The RowSelection that contains the MaxResults info.
Remarks
TODO: This does not apply to ADO.NET at all