Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateAccessor.MaxResults Property

Gets or sets the maximum number of rows for this HibernateTemplate.

[Visual Basic]
Public MustOverride Property MaxResults() As Integer
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public abstract int MaxResults { public get; public set; }

Property Value

The max results.

Remarks

This is important for processing subsets of large result sets, avoiding to read and hold the entire result set in the database or in the ADO.NET driver if we're never interested in the entire result in the first place (for example, when performing searches that might return a large number of matches).

Default is 0, indicating to use the driver's default.

See Also

HibernateAccessor Class | Spring.Data.NHibernate Namespace