Hi guys,
I'm hitting a NotSupportedException() from within the
AggregatingGroupByRewriter on a query like this:
(from p in db.Products
group p by p.Category.CategoryId
into g
select new
{
g.Key,
MaxPrice = g.Max(p => p.UnitPrice)
}).Take(100).ToList();
The comment in the source of AggregatingGroupByRewriter suggests it needs to
"move the result operator up" - the Take() call - which isn't implemented
yet.
I was just wondering whether there was a way to rewrite the LINQ query for
now to have the same effect? (without doing the Take after fetching
everything from the database, obviously!!).
Many thanks
James
---
James Crowley
CEO, developerFusion - the global developer community -
http://www.developerfusion.com/
CTO, TechEye - all the technology news unfit for print -
http://www.techeye.net/
linkedin: http://linkedin.com/in/jamescrowley
twitter: http://twitter.com/jamescrowley
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
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.