Hello,
There is a variation of this query that I'm still having this problem. Here
is the query:
var result = sessao.Consulta()
.OrderBy(a => a.Sigla)
.Take(10)
.GroupBy(a => a.Sigla)
.OrderBy(a => a.Key)
.Select(a => new {Key = a.Key, ItemCount = a.Count()});
For your information, I'm homologating the NHibernate with KendoUI Grid
Control (http://www.telerik.com/products/aspnet-mvc.aspx). This grid
generates automatically the IQueryable, resulting in a query like the
above.
Here is the Exception:
Não há suporte para o método especificado.
em
NHibernate.Hql.Ast.ANTLR.PolymorphicQuerySourceDetector.GetClassName(IASTNode
querySource) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Hql\Ast\ANTLR\PolymorphicQuerySourceDetector.cs:linha
58
em
NHibernate.Hql.Ast.ANTLR.PolymorphicQuerySourceDetector.Process(IASTNode
tree) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Hql\Ast\ANTLR\PolymorphicQuerySourceDetector.cs:linha
27
em NHibernate.Hql.Ast.ANTLR.AstPolymorphicProcessor.Process() na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Hql\Ast\ANTLR\AstPolymorphicProcessor.cs:linha
30
em NHibernate.Hql.Ast.ANTLR.AstPolymorphicProcessor.Process(IASTNode
ast, ISessionFactoryImplementor factory) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Hql\Ast\ANTLR\AstPolymorphicProcessor.cs:linha
24
em
NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(IASTNode
ast, String queryIdentifier, String collectionRole, Boolean shallow,
IDictionary`2 filters, ISessionFactoryImplementor factory) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:linha
33
em
NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory.CreateQueryTranslators(String
queryIdentifier, IQueryExpression queryExpression, String collectionRole,
Boolean shallow, IDictionary`2 filters, ISessionFactoryImplementor factory)
na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Hql\Ast\ANTLR\ASTQueryTranslatorFactory.cs:linha
27
em
NHibernate.Engine.Query.HQLExpressionQueryPlan.CreateTranslators(String
expressionStr, IQueryExpression queryExpression, String collectionRole,
Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor
factory) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Engine\Query\HQLExpressionQueryPlan.cs:linha
34
em NHibernate.Engine.Query.HQLExpressionQueryPlan..ctor(String
expressionStr, IQueryExpression queryExpression, String collectionRole,
Boolean shallow, IDictionary`2 enabledFilters, ISessionFactoryImplementor
factory) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Engine\Query\HQLExpressionQueryPlan.cs:linha
23
em NHibernate.Engine.Query.HQLExpressionQueryPlan..ctor(String
expressionStr, IQueryExpression queryExpression, Boolean shallow,
IDictionary`2 enabledFilters, ISessionFactoryImplementor factory) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Engine\Query\HQLExpressionQueryPlan.cs:linha
17
em
NHibernate.Engine.Query.QueryPlanCache.GetHQLQueryPlan(IQueryExpression
queryExpression, Boolean shallow, IDictionary`2 enabledFilters) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Engine\Query\QueryPlanCache.cs:linha
88
em NHibernate.Impl.AbstractSessionImpl.GetHQLQueryPlan(IQueryExpression
queryExpression, Boolean shallow) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Impl\AbstractSessionImpl.cs:linha
318
em NHibernate.Impl.AbstractSessionImpl.CreateQuery(IQueryExpression
queryExpression) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Impl\AbstractSessionImpl.cs:linha
274
em NHibernate.Linq.DefaultQueryProvider.PrepareQuery(Expression
expression, IQuery& query, NhLinqExpression& nhQuery) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Linq\DefaultQueryProvider.cs:linha
69
em NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression)
na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Linq\DefaultQueryProvider.cs:linha
33
em NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression
expression) na
c:\Fontes\Fontes\NHibernate\nhibernate-core-3.3.x\src\NHibernate\Linq\DefaultQueryProvider.cs:linha
40
em Remotion.Linq.QueryableBase`1.GetEnumerator() na :linha 0
em System.Linq.SystemCore_EnumerableDebugView`1.get_Items()
Thnaks,
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/dwHFY_UXuw0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.