markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 302 forks source link

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

Open hmobius opened 10 years ago

hmobius commented 10 years ago

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?