problem with var q = NHibernateHelper.GetCurrentSession().Linq<Person>().OrderBy(x => x.LastName ).ThenBy(x=>x.Id).GroupBy(x=>x.LastName).OrderBy(x=>x.Key).Select(x => new object[] { (x.Key), (x.Count()) } );

Description

notes:
This expression is used for supporting server side paging.
I've got also an example project with embedded db, zip archive is 4MB - i can send it on request.

exception is:
invalid Hibernate type for CastProjection

criteria.ToString:
{FirstName asc and Id asc and asc}

expression is:
{value(NHibernate.Linq.Query`1[NHibernate.Linq.Test.Person]).OrderBy( => .FirstName).ThenBy( => .Id).GroupBy( => .FirstName).OrderBy( => .Key).Select( => new [] {Convert(.Key), Convert(.Count())})}

Environment

None

Assignee

Unassigned

Reporter

bh

Labels

None

Components

Affects versions

Priority

Blocker
Configure