使用 $where
BsonDocument query = new BsonDocument("$where", "this.soDate<this.pEffDate");//{$where:"this.soDate<this.pEffDate"}
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/6840898.html,如需转载请自行联系原作者
本文介绍了一种使用MongoDB中的$where操作符的方法,通过一个具体的例子展示了如何实现基于JavaScript表达式的条件筛选。
使用 $where
BsonDocument query = new BsonDocument("$where", "this.soDate<this.pEffDate");//{$where:"this.soDate<this.pEffDate"}
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/6840898.html,如需转载请自行联系原作者
1万+

被折叠的 条评论
为什么被折叠?