Esempio n. 1
0
 public EfUnitOfWork(EfArticleDbContext _dbContext, IHttpContextAccessor _accessor)
 {
     dbContext = _dbContext ?? throw new ArgumentException("dbContext can cot ne null");
     accessor  = _accessor;
 }
Esempio n. 2
0
 public EfArticleRepository(EfArticleDbContext context, IHttpContextAccessor accessor) : base(context)
 {
     article   = new Data.Model.Article();
     _accessor = accessor;
 }