Add a LIMIT clause to the given SQL SELECT

Namespace:  NHibernate.Dialect
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Overridable Function GetLimitString ( _
	querySqlString As SqlString, _
	hasOffset As Boolean _
) As SqlString
C#
public virtual SqlString GetLimitString(
	SqlString querySqlString,
	bool hasOffset
)
Visual C++
public:
virtual SqlString^ GetLimitString(
	SqlString^ querySqlString, 
	bool hasOffset
)
JavaScript
function getLimitString(querySqlString, hasOffset);

Parameters

querySqlString
Type: NHibernate.SqlCommand..::.SqlString
A Query in the form of a SqlString.
hasOffset
Type: System..::.Boolean
Offset of the first row is not zero

Return Value

A new SqlString that contains the LIMIT clause.

See Also