Calling Where without a base command throws wrong Exception #321

hmobius opened this Issue Nov 11, 2013 · 0 comments


None yet
1 participant

hmobius commented Nov 11, 2013

If I call Where without a query command - All, FindAllBy etc - Simple.Data throws a BadExpressionException.

var testOne =  db.Albums.Where(db.Albums.GenreId == 1);

Regardless of whether the SimpleExpression passed in to Where is valid or not, this should throw an InvalidOperationException shouldn't it?

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