Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
hmobius opened this Issue · 0 comments

1 participant

@hmobius

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.

@markrendle markrendle closed this issue from a commit
@markrendle Fixes #288 3ea81b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.