예제 #1
0
 public CategoryRepository(ApplicationDbContext dbContext,
                           IMapper mapper,
                           IStoredProcedureRepositoryBase storedProcedureRepositoryBase
                           )
     : base(dbContext)
 {
     _mapper    = mapper;
     _dbContext = dbContext;
     _storedProcedureRepository = storedProcedureRepositoryBase;
 }
예제 #2
0
        public CartRepository(ApplicationDbContext context,
                              IStoredProcedureRepositoryBase storedProcedureRepository,
                              IMapper mapper,
                              RoleManager <Role> roleManager

                              ) : base(context)
        {
            _context = context;
            _storedProcedureRepository = storedProcedureRepository;
            _mapper      = mapper;
            _roleManager = roleManager;
        }
예제 #3
0
 public UserRepository(ApplicationDbContext context,
                       IStoredProcedureRepositoryBase storedProcedureRepository,
                       UserManager <ApplicationUser> user, IMapper mapper,
                       RoleManager <Role> roleManager
                       ) : base(context)
 {
     _mapper  = mapper;
     _user    = user;
     _context = context;
     _storedProcedureRepository = storedProcedureRepository;
     _roleManager = roleManager;
 }
예제 #4
0
        public ProductRepository(ApplicationDbContext context,
                                 IStoredProcedureRepositoryBase storedProcedureRepository,
                                 IMapper mapper,
                                 RoleManager <Role> roleManager

                                 ) : base(context)
        {
            _context = context;
            _storedProcedureRepository = storedProcedureRepository;
            _mapper         = mapper;
            _roleManager    = roleManager;
            _fileOperations = new FileOperationsRepository();
        }