Beispiel #1
0
 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>();
 }
Beispiel #4
0
 public PostCategoryRepos(TechShareDBContext context) : base(context)
 {
 }
 public CategoryRepository(TechShareDBContext context) : base(context)
 {
 }