public UnitOfWork(ShareMeContext context, IArticleRepository articleRepository, ICategoryRepository categoryRepository, IAuthorRepository authorRepository, ITagRepository tagRepository) { this.context = context; ArticleRepository = articleRepository; CategoryRepository = categoryRepository; AuthorRepository = authorRepository; TagRepository = tagRepository; }
public UnitOfWork(ShareMeContext context) { this.context = context; UserRepository = new UserRepository(context); TagRepository = new TagRepository(context); PostRepository = new PostRepository(context); CommentRepository = new CommentRepository(context); CategoryRepository = new CategoryRepository(context); }
public CategoryRepository(ShareMeContext context) : base(context) { }
public ArticleRepository(ShareMeContext context) : base(context) { }
public GenericRepository(ShareMeContext context) { this.context = context; dbSet = context.Set <T>(); }
public AuthorRepository(ShareMeContext context) : base(context) { }
public TagRepository(ShareMeContext context) : base(context) { }