Example #1
0
 public PictureRepository(ImagebookDbContext dbContext) : base(dbContext)
 {
 }
 public GenericRepository(ImagebookDbContext dbContext)
 {
     this._dbContext = dbContext;
     this._dbSet     = this._dbContext.Set <TEntity>();
 }
Example #3
0
 public AlbumRepository(ImagebookDbContext dbContext) : base(dbContext)
 {
 }
Example #4
0
 public UnitOfWork(ImagebookDbContext dbContext)
 {
     this._dbContext = dbContext;
     this.Albums     = new AlbumRepository(dbContext);
     this.Pictures   = new PictureRepository(dbContext);
 }