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: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
IEnumerable Enumerable() |
Visual Basic |
---|
Function Enumerable As IEnumerable |
Visual C++ |
---|
IEnumerable^ Enumerable() |
Return Value
[Missing <returns> documentation for "M:NHibernate.IQuery.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.