Beispiel #1
0
 public UnitOfWork(ApplicationDbContext db,
                   ICategoryRepository <Category> _category,
                   IMainCommentRepository <MainComment> _mainComment,
                   ISubCommentRepository <SubComment> _subComment,
                   IGenericRepository <Post> _post)
 {
     _db         = db;
     Category    = _category;
     MainComment = _mainComment;
     SubComment  = _subComment;
     Post        = _post;
 }
Beispiel #2
0
 public BlogUnitOfWork(DatabaseContext context,
                       IBlogRepository blogRepository,
                       ICategoryRepository categoryRepository,
                       IAboutRepository aboutRepository,
                       IMainCommentRepository mainCommentRepository
                       )
     : base(context)
 {
     BlogRepository        = blogRepository;
     CategoryRepository    = categoryRepository;
     AboutRepository       = aboutRepository;
     MainCommentRepository = mainCommentRepository;
 }