예제 #1
0
        public UnitOfWork(WebBlogDbContext context)
        {
            _context = context;

            CategoryRepository = new CategoryRepository(_context);
            ArticleRepository  = new ArticleRepository(_context);
            CommentRepository  = new CommentRepository(_context);
            MediaRepository    = new MediaRepository(_context);
        }
예제 #2
0
 public BlogService(WebBlogDbContext db)
 {
     this.db = db;
 }
예제 #3
0
 public MediaController(WebBlogDbContext context)
 {
     _context = context;
 }
예제 #4
0
 public AuthorRepositoryEf(WebBlogDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #5
0
 public PostRepositoryEf(WebBlogDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #6
0
 public ArticlesController(WebBlogDbContext context)
 {
     _context = context;
 }