예제 #1
0
        public AuthContext()
        {
            var connectionString = DBConfigurator.GetConnectionString("AuthDB");
            var mongoClient      = new MongoClient(connectionString);

            _database = mongoClient.GetDatabase("AuthDB");
        }
예제 #2
0
        public DepartmentDBContext()
        {
            var connectionString = DBConfigurator.GetConnectionString("OperationalsDB");
            var mongoClient      = new MongoClient(connectionString);

            _database = mongoClient.GetDatabase("OperationalsDB");
        }