public UnitOfWork(TechShareDBContext context) { _context = context; PostRepository = new PostRepository(_context); CategoryRepository = new CategoryRepository(_context); PostCategoryRepos = new PostCategoryRepos(_context); }
public PostRepository(TechShareDBContext context) : base(context) { }
public GenericRepository(TechShareDBContext context) { _context = context; _set = _context.Set <T>(); }
public PostCategoryRepos(TechShareDBContext context) : base(context) { }
public CategoryRepository(TechShareDBContext context) : base(context) { }