public static MongoDBService GetDBService(IHttpContextProxy httpContextProxy) { var dbconfig = new ZNxt.Net.Core.DB.Mongo.MongoDBServiceConfig(); dbconfig.Set("znxt_mut_app_core", "mongodb+srv://admin2:mvp%[email protected]:27017/?authSource=admin"); var dBService = new ZNxt.Net.Core.DB.Mongo.MongoDBService(dbconfig, httpContextProxy); return(dBService); }
public static MongoDBService GetDBService(IHttpContextProxy httpContextProxy) { var dbconfig = new ZNxt.Net.Core.DB.Mongo.MongoDBServiceConfig(); // dbconfig.Set("znxt_mut_app_core", "mongodb+srv://admin:[email protected]/test"); dbconfig.Set("znxt_mut_app_core", "mongodb+srv://admin2:mvp%[email protected]:27017/?authSource=admin"); var dBService = new ZNxt.Net.Core.DB.Mongo.MongoDBService(dbconfig, httpContextProxy); return(dBService); }