public UnitOfWork(PhotoManagerDbContext context) { _context = context; Photos = new PhotoRepository(_context); Albums = new AlbumRepository(_context); PhotoComments = new PhotoCommentsRepository(_context); Users = new UsersRepository(_context); Images = new ImageRepository(_context); }
public ImageRepository(PhotoManagerDbContext context) : base(context) { _context = context; }
public CommentRepository(PhotoManagerDbContext context) { _context = context; }
public PhotoCommentsRepository(PhotoManagerDbContext context) : base(context) { _context = context; }
public PhotosRepository(PhotoManagerDbContext context) { _context = context; }