我急需在mongodb上回答这些问题...... [英] I need answers for these questions on mongodb urgently...

查看:108
本文介绍了我急需在mongodb上回答这些问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





目前我正在开发一个以mongodb为数据库的项目。在继续之前,我需要弄清楚一些事情。

1.是否必须在每台机器上安装mongodb来运行应用程序(在实现中涉及到mongodb)。 )。

2.如果有可能连接到服务器数据库机器,如何在代码中给连接字符串(不是本地主机)?



请尽快给我答案。如果可能的话,请在asp.net C#中使用JSON附加mvc 4 web api中使用的mongodb示例应用程序。

Hi,

Presently I am working on a project which is having mongodb as database. Before moving forward, I need to get some of the things clarified.
1. Is it compulsory to have mongodb installed in every machine to run the application(which is involved mongodb in it''s implementation.).
2. If there is possibility to connect to a server database machine, how to give connection string(not for local host) in code?

Please provide me the answers as soon as possible. If possible, Please attach a sample application of mongodb used in mvc 4 web api using JSON in asp.net C#.

推荐答案



  1. 否!
  2. 是: MongoDB开发入门 [ ^ ]

    既然你没有指定用来编写应用程序的语言,这里列出了MongoDB的所有语言绑定: MongoDB驱动程序和客户端库 [ ^ ]

  1. No!
  2. Yes: Getting Started with MongoDB Development[^]
    Since you didn''t specify which language you are going to use to write your aplication, here is a list of all language bindings for MongoDB: MongoDB Drivers and Client Libraries[^]





如果您想使用C#语言绑定,您可以从这里开始:< a href =http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-csharp-driver/#getting-start ed-with-csharp-driver> CSharp驱动程序入门 [ ^ ]。 MongoDB Connections字符串格式 [ ^ ]听起来像你可能觉得有用的另一种资源。



问候,



- 曼弗雷德



In case you want to use the C# language binding you may want to start here: Getting Started with the CSharp Driver[^]. MongoDB Connections String Format[^] sounds like another resource you might find useful.

Regards,

— Manfred


这篇关于我急需在mongodb上回答这些问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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