RavenDB + Linqpad,我得到的方法不受支持:GroupBy

时间:2014-06-10 21:02:35

标签: ravendb aggregate linqpad

我尝试在连接到RavenDB时运行Linqpad内部的查询:

from c in Query<Tournament.Models.Matches>() 
group c by c.Location into g
select g

我收到以下错误:

Could not understand expression: .GroupBy(c => c.Id).Select(g => g)
Method not supported: GroupBy

at Raven.Client.Linq.RavenQueryProviderProcessor`1.GetLuceneQueryFor(Expression expression)
at Raven.Client.Linq.RavenQueryProviderProcessor`1.Execute(Expression expression)
at Raven.Client.Linq.RavenQueryProvider`1.Execute(Expression expression)
at Raven.Client.Linq.RavenQueryProvider`1.System.Linq.IQueryProvider.Execute(Expression expression)
at Raven.Client.Linq.RavenQueryInspector`1.GetEnumerator()
at Raven.Client.Linq.RavenQueryInspector`1.System.Collections.IEnumerable.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

当运行没有聚合的简单查询时,它运行正常。

我添加了对Raven.Client.Lighweight和Raven.Abstaractions的引用,但仍然是同样的错误

我可能错过了一些愚蠢的东西。

0 个答案:

没有答案