/// <summary> /// Enumerates the query results. Better suited for queries /// which might return large results. /// <seealso cref="IQuery.Enumerable" /> /// </summary> /// <remarks> /// It might not look obvious at first, but /// <see cref="ActiveRecordMediator"/> will call our /// <see cref="InternalEnumerate"/>, which will call our /// <see cref="GenericEnumerate"/>, which will convert /// the <c>NHibernate</c>'s <see cref="IQuery.Enumerable"/> result /// returned by <see cref="ActiveRecordBaseQuery.InternalEnumerate"/> /// into a generic <see cref="IEnumerable{T}"/>. /// So, all we need to do is to cast it back to <see cref="IEnumerable{T}"/>. /// </remarks> public IEnumerable <T> Enumerate() { return((IEnumerable <T>)ActiveRecordMediator.EnumerateQuery(this)); }