Example #1
0
        public void Search_Gt()
        {
            using (var db = new MongoTestDbContext())
            {
                var filter = Builders <BsonDocument> .Filter.Gt("age", 30);

                var result = db.QueryListBson <Student>(filter);
            }
        }
Example #2
0
        public void Search_Eq()
        {
            using (var db = new MongoTestDbContext())
            {
                var filter = Builders <BsonDocument> .Filter.Eq("name", "7tiny_9");

                var result = db.QueryListBson <Student>(filter);
            }
        }