Calling ExistsBy on itself throws a RuntimeBinderException #318

hmobius opened this Issue Nov 11, 2013 · 0 comments


None yet
1 participant

hmobius commented Nov 11, 2013

It is a stupid thing to do, but if you call ExistsBy() on itself or twice in a chained command, Simple.Data throws a RuntimeBinderException.

var albumsExist = db.Albums.ExistsByGenreId(null).ExistsByGenreId(null);

In the interests of quashing RBEs, suggest this throws an InvalidOperationException instead.

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