Collection.Find(…), Collection.FindAll() All throwing exception with message “value can not be null parameter name method”
问题 Person Model: public class Person { public Int32 Id { get; set; } public String Name { get; set; } } Find Person from DB: public List<Person> find() { using (var db = new LiteDatabase(DatabasePathProvider.CacheLiteDbPath)) { var col = db.GetCollection<Person>("Person"); var list = col.FindOne(m => m.Name != null); return list; } } On executing the find query on the database as shown in the code, This exception is thrown with stack trace: at System.Dynamic.Utils.ContractUtils.RequiresNotNull