简体   繁体   English

哪个C#驱动程序用于Mongo?

[英]Which C# driver to use for Mongo?

I am starting a new project using Mongo and was wondering what the general consensus is on which C# driver to use? 我正在使用Mongo开始一个新项目,并想知道哪个C#驱动程序使用的一般共识是什么?

I am leaning towards NoRM ( here ) or the official driver ( here ). 我倾向于NoRM( 这里 )或官方司机( 这里 )。

Any suggestions or opinions on which to use and what to consider when deciding? 在决定时使用哪些建议或意见以及考虑什么?

I realize there are other questions on this topic but they are somewhat dated. 我意识到关于这个主题还有其他问题,但它们有点过时了。

Use mongodb c# driver. 使用mongodb c#驱动程序。 Because official mongodb c# driver is well tested, contains all latest features of mongodb and supported by community. 因为官方mongodb c#驱动程序经过了充分测试,包含了mongodb的所有最新功能并得到了社区的支持。

Linq? LINQ? Do you think it's a real problem? 你认为这是一个真正的问题吗? I guess no. 我觉得不是。 I found jira bug for linq support, but is without votes.. In additional i've using official mongodb c# driver at all my projects and it work very well even without linq. 我找到了linq支持的jira bug ,但没有投票。另外我在我的所有项目中使用官方mongodb c#驱动程序,即使没有linq也能很好地工作。

So, my opinion is that no need to think, need just use official mongodb c# driver. 所以,我的意见是,不需要思考,只需要使用官方的mongodb c#驱动程序。

NoRM has some cool features, but it is not actively maintained any more. NoRM有一些很酷的功能,但它不再被主动维护。 Sure that may change but I would rather go with the one that is being actively developed. 当然可能会改变,但我宁愿选择正在积极开发的那个。

I switched my application over to the officlal C# driver and its been great - its been updated to take advantage of all the new features of 1.8 and will continue to be upgraded to take advantage of new MongoDB features as they come out. 我将我的应用程序切换到官方C#驱动程序并且它很棒 - 它已经更新以利用1.8的所有新功能,并将继续升级以利用新的MongoDB功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM