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

Exists ignores all arguments when two or more are present. Should throw ArgumentException #317

hmobius opened this Issue Nov 11, 2013 · 0 comments


None yet
1 participant

hmobius commented Nov 11, 2013

Exists() can take zero or one SimpleExpressions as argument. However, when two SimpleExpressions, valid or invalid, are passed to it, Exists ignores them all and runs as if it had no argument at all. For example,

var testPlural = db.Albums.Exists(
  db.Albums.GenreId == 1, db.Albums.AlbumId == 1); 

In this case, I would expect an ArgumentException to be thrown. Instead, SimpleData checks for data in the Albums data and returns true.

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