Enumerates the query results. Better suited for queries which might return large results. IQueryEnumerable()()

Namespace: Castle.ActiveRecord.Queries
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
public IEnumerable<T> Enumerate()

Remarks

It might not look obvious at first, but ActiveRecordMediator will call our InternalEnumerate(ISession), which will call our GenericEnumerate(ISession), which will convert the NHibernate's Enumerable()() result returned by InternalEnumerate(ISession) into a generic IEnumerable<(Of <T>)>. So, all we need to do is to cast it back to IEnumerable<(Of <T>)>.

See Also

IQueryEnumerable()()