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); }
public MongoPersonManager(ParkingDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _persons = database.GetCollection <PersonModel>(settings.PersonCollectionName); }
public MongoCourseManager(ParkingDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _course = database.GetCollection <CourseModel>(settings.CourseCollectionName); }
public MongoFacultyManager(ParkingDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _faculties = database.GetCollection <FacultyModel>(settings.FacultyCollectionName); }