Пример #1
0
        public MongoContext(string conn, string db)
        {
            var client = new MongoClient(conn);

            if (client != null)
            {
                _database = client.GetDatabase(db);
            }
            MongoConfiguration.EfetuarConfiguracao();
        }