Passing two valid parameters to Having should not throw an InvalidOperationException #288

Closed
hmobius opened this Issue Apr 23, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@hmobius

hmobius commented Apr 23, 2013

If I add a call to Having and pass it two valid SimpleExpressions as parameters (see below), Simple.Data throws an InvalidOperationException.

db.Albums.All()
   .Select(db.Albums.Artists.Name, 
           db.Albums.AlbumId.Count().As("NumberOfAlbums"),   
           db.Albums.Price.Sum().As("TotalCost"))
   .Having(db.Albums.AlbumId.Count() > 2, db.Albums.Price.Sum() >= 16.99);

It should throw an ArgumentException instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment