public UserService(ICafeMoenenDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _users = database.GetCollection <User>(settings.UsersCollectionName); }
public ReservationService(ICafeMoenenDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _reservations = database.GetCollection <Reservation>(settings.ReservationsCollectionName); }
public TableService(ICafeMoenenDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _tables = database.GetCollection <Table>(settings.TablesCollectionName); }