Some databases require that a limit statement contain the maximum row number
instead of the number of rows to retrieve. This method adjusts source
limit and offset values to account for this.
Namespace: NHibernate.DialectAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public int GetLimitValue( int offset, int limit ) |
Visual Basic |
---|
Public Function GetLimitValue ( _ offset As Integer, _ limit As Integer _ ) As Integer |
Visual C++ |
---|
public: int GetLimitValue( int offset, int limit ) |
Parameters
- offset
- Type: System..::..Int32
[Missing <param name="offset"/> documentation for "M:NHibernate.Dialect.Dialect.GetLimitValue(System.Int32,System.Int32)"]
- limit
- Type: System..::..Int32
[Missing <param name="limit"/> documentation for "M:NHibernate.Dialect.Dialect.GetLimitValue(System.Int32,System.Int32)"]
Return Value
[Missing <returns> documentation for "M:NHibernate.Dialect.Dialect.GetLimitValue(System.Int32,System.Int32)"]