简体   繁体   English

我应该使用C#驱动程序还是Javascript驱动程序,使用MongoDB和ASP.NET MVC构建Web应用程序

[英]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.

相关问题 ASP.NET MVC 4 C#加mongodb驱动程序 - asp.net mvc 4 c# plus mongodb driver 如何将MongoDB驱动程序与C#ASP.NET核心API框架一起使用? - How can I use the MongoDB Driver with C# ASP.NET Core API framework? Javascript / ASP.NET MVC 4-在Javascript中使用C#字符串 - Javascript / ASP.NET MVC 4 - Using C# Strings in Javascript 如何在Javascript中使用模型(C#MVC ASP.NET) - How to use Model in Javascript (C# MVC ASP.NET) 具有Ninject依赖注入的ASP.NET MVC应用程序中的MongoDB官方C#驱动程序 - MongoDB Official C# Driver in ASP.NET MVC app with Ninject dependency injection 如何使用 mongoDb C# 驱动程序在 MongoDb asp.net 核心应用程序中处理多种语言的排序 - How to deal with sorting for multiple Language in MongoDb asp.net core application using mongoDb C# driver 使用asp.net C#Javascript使用Finerprint登录到Asp.net Web应用程序 - Login into Asp.net Web application with Finerprint using asp.net C# Javascript 开始使用asp.net / c #web apps - getting started in asp.net / c# web apps 在C#中用于ASP.NET Web应用程序的哪个快速版本? - Which express edition to use for ASP.NET web apps in C#? 我应该使用c#mongodb驱动的同步或异步方法吗? - Should I use synchronous or asynchronous methods of c# mongodb driver?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM