Пример #1
0
 public Repository(IAlbumDbContext context)
 {
     Entities = context.Set <TEntity>();
 }
Пример #2
0
 public UnitOfWork(IAlbumDbContext albumDbContext)
 {
     _albumDbContext   = albumDbContext;
     PictureRepository = new Repository <Picture>(albumDbContext);
     UserRepository    = new Repository <User>(albumDbContext);
 }