예제 #1
0
 public NotificationRepository(MedicineShopDbContext context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor, IUserRepository _userRepository) : base(context, configuration, httpContextAccessor)
 {
     this._context        = context;
     _configuration       = configuration;
     _httpContextAccessor = httpContextAccessor;
     userRepository       = _userRepository;
 }
 //private readonly IUrlHelper _urlHelper;
 public ProductRepository(MedicineShopDbContext context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor) : base(context, configuration, httpContextAccessor)
 {
     this._context        = context;
     _configuration       = configuration;
     _httpContextAccessor = httpContextAccessor;
     //_urlHelper = urlHelper;
 }
 //private readonly IUrlHelper _urlHelper;
 public StudentRepository(MedicineShopDbContext context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor) : base(context, configuration, httpContextAccessor)
 {
     this._context        = context;
     _configuration       = configuration;
     _httpContextAccessor = httpContextAccessor;
     jwtSecret            = _configuration?.GetSection("ApplicationSettings")?["Secret"]?.ToString() ?? string.Empty;
     //_urlHelper = urlHelper;
 }
 //private readonly IUrlHelper _urlHelper;
 public UnitOfWork(MedicineShopDbContext Context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor)
 {
     this.Context              = Context;
     Entities                  = Context.Set <TEntity>();
     _configuration            = configuration;
     this._httpContextAccessor = httpContextAccessor;
     //_urlHelper = urlHelper;
 }
예제 #5
0
 //private readonly IUrlHelper _urlHelper;
 public OrdersRepository(MedicineShopDbContext context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor, IUserRepository _userRepository, IProductRepository _productRepository) : base(context, configuration, httpContextAccessor)
 {
     this._context        = context;
     _configuration       = configuration;
     _httpContextAccessor = httpContextAccessor;
     userRepository       = _userRepository;
     productRepository    = _productRepository;
     //_urlHelper = urlHelper;
 }