Impossible to have groupby key as object

May 8, 2010 at 9:19 PM

I try to use GroupBy like this:

Items.GroupBy(function(g) { return { make: g.make, mark: g.mark } })

but it does not work because ToLookup use the key as object property.

 

 

 

Coordinator
May 11, 2010 at 1:32 PM
Thank you for your report! I try to change ToLookup to no use JsObject.
May 11, 2010 at 5:02 PM

Thank you for replying. 

I think that your implimentation of linq is very usefull. I'd like to join your development team.

Your solution also helps to fix this workitem http://linqjs.codeplex.com/WorkItem/View.aspx?WorkItemId=4460.

Looking forward a new release.

 

Coordinator
May 18, 2010 at 4:19 PM

Thanks!
a welcome ,patch(code), sample, report, etc...

and, I released new version 2.1.0.0
I hope you will find it helpful.