timscott/catnap — pull request #13 by RobGibbens (2012-08-24 02:45:07+00:00)
Title: Allow .Find(criteria) when criteria doesn't have a where clause

Allow a criteria without any where clause. Returns all results. Previously it add " where () " to the clause, which is invalid sql syntax.

var repo = new MyRepository ();
var criteria = Criteria.For ();
var results = repo.Find (criteria);