コード例 #1
0
        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)
 {
 }
コード例 #3
0
 public PurchaseRepository(IMovieRentalDatabaseSettings settings) : base(settings)
 {
 }