Using both forms of parameters with ExistsBy shouldn't work but does #320

Open
hmobius opened this Issue Nov 11, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@hmobius

hmobius commented Nov 11, 2013

ExistsBy can take either fluid or named parameters. For example, either of the following should work (once #319 is fixed).

var fluid = db.Albums.ExistsByGenreId(null);
var named = db.Albums.ExistsBy(GenreId:null);

However, if no error is thrown if you mix the two styles in one call like so.

var mixed = db.Albums.ExistsByGenreId(GenreId: null);

Suggest that it should throw an ArgumentException instead?

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