public Repository(IAlbumDbContext context) { Entities = context.Set <TEntity>(); }
public UnitOfWork(IAlbumDbContext albumDbContext) { _albumDbContext = albumDbContext; PictureRepository = new Repository <Picture>(albumDbContext); UserRepository = new Repository <User>(albumDbContext); }