markrendle / Simple.Data

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

ExistsBy doesn't acknowledge named parameters #319

Open hmobius opened 10 years ago

hmobius commented 10 years ago

This is a continuation of #268 . As far as I can tell, ExistsBy should be able to take named parameters as arguments. For example,

var testOne = db.Albums.ExistsBy(GenreId: null);
var testTwo = db.Albums.ExistsBy(GenreId: 1);
var testThree = db.Albums.ExistsBy(GenreId: 1, ArtistId: 120);

However, Simple.Data throws an ArgumentException ("No columns specified") when running any of these rather than running the command.