linq's OrderBy by a calculated column doesn't work

Description

var a = source.Select(s => new { s.Email, Revenue = s.CompletedOffers.Sum(c => (decimal?)c.Offer.Revenue) })
.OrderBy(s => s.Revenue).ToList()

throws QuerySyntaxException. Message: "Exception of type 'Antlr.Runtime.NoViableAltException' was thrown"

Environment

None

Activity

Show:

Oskar Berggren May 30, 2012 at 6:31 PM

Closing issues fixed in 3.3.1.CR1.

Oskar Berggren January 22, 2012 at 5:04 PM

Fix from Alexander merged: 1f70cc3345f1316319a127a951ab9756e7174b3e

Patrick Earl July 3, 2011 at 10:47 AM

Hi dmitry. It would be great if you could provide a full unit test. http://blog.patearl.net/2010/12/nhibernate-30-linq.html

Fixed

Details

Assignee

Unassigned

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 28, 2011 at 11:42 AM
Updated October 9, 2014 at 10:29 PM
Resolved January 22, 2012 at 5:04 PM
Who's Looking?
Loading...