protected BaseRepository(IMovieRentalDatabaseSettings settings)
        {
            var client = new MongoClient(settings.ConnectionString);

            _database = client.GetDatabase(settings.DatabaseName);

            _collection = _database.GetCollection <T>(typeof(T).Name);
        }
Пример #2
0
 public MemberRepository(IMovieRentalDatabaseSettings dbSettings) : base(dbSettings)
 {
 }
 public PurchaseRepository(IMovieRentalDatabaseSettings settings) : base(settings)
 {
 }