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.
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,
In this case, I would expect an
ArgumentException
to be thrown. Instead, SimpleData checks for data in the Albums data and returns true.