Esempio n. 1
0
        public WorkoutService(IP90X_AppDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase("P90X_App");

            _workouts = database.GetCollection <Workout>("workouts");
        }
        public Exercise_CountService(IP90X_AppDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase("P90X_App");

            _exercise_counts = database.GetCollection <Exercise_Count>("exercise_counts");
        }
Esempio n. 3
0
        public UserService(IP90X_AppDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase("P90X_App");

            _users = database.GetCollection <User>("users");
        }