Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing a non-SimpleExpression parameter to Having should throw an ArgumentException #287

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

Comments

@hmobius
Copy link

hmobius commented Apr 23, 2013

If I add a call to Having but pass it a parameter that is not a SimpleExpression - an integer string, etc (see below), Simple.Data throws a RuntimeBinderException.

db.Albums.All()
   .Select(db.Albums.Artists.Name, 
           db.Albums.AlbumId.Count().As("NumberOfAlbums"))
   .Having(123);

It should throw an ArgumentException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant