コード例 #1
0
        public MongoTelephoneManager(ParkingDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _telephones = database.GetCollection <TelephoneModel>(settings.TelephoneCollectionName);
        }
        public MongoApprovalTypeManager(ParkingDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _approvalTypes = database.GetCollection <ApprovalTypeModel>(settings.ApprovalTypesCollectionName);
        }
コード例 #3
0
        public MongoPersonManager(ParkingDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _persons = database.GetCollection <PersonModel>(settings.PersonCollectionName);
        }
コード例 #4
0
        public MongoCourseManager(ParkingDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _course = database.GetCollection <CourseModel>(settings.CourseCollectionName);
        }
コード例 #5
0
        public MongoFacultyManager(ParkingDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _faculties = database.GetCollection <FacultyModel>(settings.FacultyCollectionName);
        }