Limits the number of rows returned by the Sql query if necessary.
Namespace:
NHibernate.LoaderAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Sub SetMaxRows ( _ st As IDbCommand, _ selection As RowSelection _ ) |
C# |
---|
protected void SetMaxRows( IDbCommand st, RowSelection selection ) |
Visual C++ |
---|
protected: void SetMaxRows( IDbCommand^ st, RowSelection^ selection ) |
JavaScript |
---|
function setMaxRows(st, 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