protected BaseRepository(IMovieRentalDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); _database = client.GetDatabase(settings.DatabaseName); _collection = _database.GetCollection <T>(typeof(T).Name); }
public MemberRepository(IMovieRentalDatabaseSettings dbSettings) : base(dbSettings) { }
public PurchaseRepository(IMovieRentalDatabaseSettings settings) : base(settings) { }