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

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

Syntax

Visual Basic (Declaration)
Function Enumerable As IEnumerable
C#
IEnumerable Enumerable()
Visual C++
IEnumerable^ Enumerable()
JavaScript
function enumerable();

Remarks

Entities returned as results are initialized on demand. The first SQL query returns identifiers only.

This is a good strategy to use if you expect a high number of the objects returned to be already loaded in the ISession or in the 2nd level cache.

See Also