Ejemplo n.º 1
0
        public PersonService(IClimberstoreDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _person = database.GetCollection <Person>(settings.PersonCollectionName);
        }
Ejemplo n.º 2
0
        public SkillService(IClimberstoreDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _skill = database.GetCollection <Skill>(settings.SkillCollectionName);
        }