Version: MongoDB.Driver v2.3.0.157
There is relatively little code for this driver version on the Internet, and it should be that this driver has just been released, and I use this driver to implement mongodb queries
One way is to query with linq via AsQueryable and another way is to query with Find, of course, both can support lambda expressions
Support fuzzy query and exact query, support sorting, pagination is not done, in fact, pagination is very simple, and there is an extension method later.
I wrote 15 ways to call it, and the code is as follows:
Finally, attach the source code:
Tourists, if you want to see the hidden content of this post, please Reply
|