[英]Building Web Apps using MongoDB and ASP.NET MVC, Should I Use C# Drivers or Javascript Driver
I am developing asp.net mvc web app with MongoDB as the data storage. 我正在使用MongoDB作为数据存储来开发asp.net mvc Web应用程序。
I want to know others opinion about what drivers to use. 我想知道其他人对使用哪种驱动程序的意见。
Should I use C# drivers which is supported by community? 我应该使用社区支持的C#驱动程序吗?
Or, should I go to use Javascript driver which is supported by Mongo. 或者,我应该使用Mongo支持的Javascript驱动程序。 How stable is javascript driver? javascript驱动程序的稳定性如何?
Thanks in advance.. 提前致谢..
The C# driver is very close to being a 1.0 release and is now supported by 10Gen. C#驱动程序非常接近1.0版本,现在已由10Gen支持。 Known bugs submitted to the JIRA Are usually fixed very quickly. 提交给JIRA的已知错误通常可以很快修复。 There is also a very active discussion group which is closely monitored and will usually get your questions answered same day 还有一个非常活跃的讨论小组 ,受到密切监视,通常会在当天回答您的问题
I would say it is pretty safe to start using the C# driver in production if you are on .Net 3.0 or greater. 我要说的是,如果您使用的是.Net 3.0或更高版本,那么在生产环境中开始使用C#驱动程序是非常安全的。 You may still experience a few breaking changes until version 1.0 is reached but it is usually nothing major and there is always fair warning. 在达到1.0版之前,您可能仍会遇到一些重大更改,但通常没有什么大不了的,并且总是有合理的警告。
I wouldn't use the JS driver client-side. 我不会使用JS驱动程序客户端。 It will open up your mongo server to potential hacks. 它将为您的mongo服务器打开潜在的黑客攻击。
The official C# driver is very stable now. 官方的C#驱动程序现在非常稳定。 I tried some of the community drivers a while ago and they were too buggy to use. 不久前,我尝试了一些社区驱动程序,这些驱动程序过于庞大,无法使用。
http://www.mongodb.org/display/DOCS/CSharp+Language+Center http://www.mongodb.org/display/DOCS/CSharp+Language+Center
To my mind I'd never use any JavaScript driver for a database connection. 在我看来,我永远不会使用任何JavaScript驱动程序进行数据库连接。 I'd always want to keep all my data access within the c# code and away from the UI. 我一直想将所有数据访问权限都保留在c#代码中,并且远离UI。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.