Esempio n. 1
0
        private void ConnectToDb()
        {
            var connectionString = configuration.GetConnectionString();

            collection = new MongoClient(connectionString)
                         .GetServer()
                         .GetDatabase("tweegle")
                         .GetCollection("favorites");
        }