Return the query results as an IList. If the query contains multiple results per row, the results are returned in an instance of object[].

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
IList List()
Visual Basic
Function List As IList
Visual C++
IList^ List()

Return Value

The IList filled with the results.

Remarks

This is a good strategy to use if you expect few of the objects being returned are already loaded or if you want to fill the 2nd level cache.

See Also