使用官方C#驱动程序进行MongoDB聚合? [英] MongoDB Aggregation using official C# driver?

查看:95
本文介绍了使用官方C#驱动程序进行MongoDB聚合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用官方的C#驱动程序.不知道要实现此功能:
Select MAX(TimeStamp) as MaxTimeStamp, ExtNo From AgentStatus Where TimeStamp>=@begin and TimeStamp <=@end Group By ExtNo
有帮助吗?谢谢!

I'm using the official C# driver.Have no idea to implement this:
Select MAX(TimeStamp) as MaxTimeStamp, ExtNo From AgentStatus Where TimeStamp>=@begin and TimeStamp <=@end Group By ExtNo
Any Help?Thanks!

推荐答案

已经使用MapReduce解决了问题:)一个简单的演示

Already use MapReduce to solve the problerm :) A simple demo HERE

这篇关于使用官方C#驱动程序进行MongoDB聚合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆