开发者

Building Web Apps using MongoDB and ASP.NET MVC, Should I Use C# Drivers or Javascript Driver

开发者 https://www.devze.com 2022-12-23 13:20 出处:网络
I am developing asp.net mvc web app with MongoDB as the data storage. I want to know others opinion about what drivers to use.

I am developing asp.net mvc web app with MongoDB as the data storage.

I want to know others opinion about what drivers to use.

Should 开发者_JAVA百科I use C# drivers which is supported by community?

Or, should I go to use Javascript driver which is supported by Mongo. How stable is javascript driver?

Thanks in advance..


The C# driver is very close to being a 1.0 release and is now supported by 10Gen. Known bugs submitted to the JIRA Are usually fixed very quickly. 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. 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.


I wouldn't use the JS driver client-side. It will open up your mongo server to potential hacks.

The official C# driver is very stable now. 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


To my mind I'd never use any JavaScript driver for a database connection. I'd always want to keep all my data access within the c# code and away from the UI.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号