摘要:
配置文件加入下图所示节点,重启mongodb服务即可(:号后注意要有空格) 1. 配置user 用户操作传送门: https://docs.mongodb.com/manual/reference/method/js-user-management/ 角色操作传送门 https://docs.mon 阅读全文
摘要:
1.安装mongodb 下载地址:https://www.mongodb.com/download-center#community 文档地址:https://docs.mongodb.com/manual/administration/install-community/ 具体安装不赘述,没有什么 阅读全文
摘要:
一.驱动下载 1.1 两种 网站下载 http://mongodb.github.io/mongo-csharp-driver/?_ga=1.120058816.975053224.1463466623 VS NuGet安装 三个dll 二.日常操作 2.1 操作文档传送门: https://doc 阅读全文
摘要:
public class MongoHelper { private static IMongoDatabase GetDb(string constr, string dbName) { var db = new MongoClient(constr).GetDatabase(dbName); return... 阅读全文