public AdService(AdPortalContext context, IMapper mapper, ISieveProcessor sieveProcessor, IOptions<UserOptions> userOptions, IImageHelper imageHelper) : base(context, mapper, sieveProcessor) { _userOptions = userOptions ?? throw new ArgumentNullException(nameof(userOptions)); _imageHelper = imageHelper ?? throw new ArgumentNullException(nameof(imageHelper)); }
public CityController(ApplicationDbContext context, IMapper mapper, IHttpContextAccessor httpContextAccessor, ISieveProcessor sieveProcessor) { _context = context; _mapper = mapper; _httpContextAccessor = httpContextAccessor; _sieveProcessor = sieveProcessor; }
public StudentsController(IUnitOfWork unitOfWork, ILogger <StudentsController> logger, ISieveProcessor sieveProcessor) { _unitOfWork = unitOfWork; _logger = logger; _sieveProcessor = sieveProcessor; }
public VendaController(ISieveProcessor sieveProcessor, LojaDiscosDbContext context, IMapper mapper) { _context = context; _sieveProcessor = sieveProcessor; _mapper = mapper; /* * Venda v = new Venda() * { * Id_Cliente = 1, * Vl_Total = 100, * Vl_TotalCashback = 23, * Produtos = { new ItemVenda() { Id_Disco = 14, Preco = 177, Cashback = 7 }, new ItemVenda() { Id_Disco = 7, Preco = 143, Cashback = 2 } } * }; * _context.Vendas.Add(v); * _context.SaveChanges(); * * if (_context.Vendas.Count() == 0) * { * for (int i = 0; i < 200; i++) * { * _context.Vendas.Add(new Venda()); * } * * _context.SaveChanges(); * } */ }
/// <summary> /// RoleRepository /// </summary> /// <param name="context"></param> public RolesRepository(FilmstanContext context, ISieveProcessor sieveProcessor) { this.context = context; this.sieveProcessor = sieveProcessor; AccessLevelRepository = new AccessLevelsRpostiory(context); RoleEntite = context.Set <Role>(); }
public QueryHandler( IApplicationDbContext dbContext, ISieveProcessor sieveProcessor) { _dbContext = dbContext; _sieveProcessor = sieveProcessor; }
public CachebaleRepository(IMapper mapper, IMemoryCache cache, IRepoOptions repoOptions, ISieveProcessor sieveProcessor) { _mapper = mapper; _cache = cache; _cacheItemName = repoOptions.CacheItemName; _sieveProcessor = sieveProcessor; }
public SortFilterService(ISieveProcessor sieveProcessor, IPaginationGenerator paginationGenerator, IConfiguration configuration) { _sieveProcessor = sieveProcessor; _paginationGenerator = paginationGenerator; _configuration = configuration; }
public StudentService(DbContext context, SieveProcessor sieveProcessor) { this._context = context ?? throw new NullReferenceException(nameof(context)); this._sieveProcessor = sieveProcessor ?? throw new NullReferenceException(nameof(sieveProcessor)); this._userInfoService = new UserInfoService(context); }
public IssueTicketService(IRepositoryWrapper repoWrapper, IMapper mapper, ISieveProcessor sieveProcessor, IParamService paramService, IStudentService studentService) { _repoWrapper = repoWrapper; _mapper = mapper; _sieveProcessor = sieveProcessor; _paramService = paramService; _studentService = studentService; }
public RenewContractService(IRepositoryWrapper repoWrapper, IStudentService studentService, ISieveProcessor sieveProcessor, IParamService paramService, IStaffService staffService) { _repoWrapper = repoWrapper; _studentService = studentService; _sieveProcessor = sieveProcessor; _paramService = paramService; _staffService = staffService; }
public CategoryRepository(FilmstanContext context, ISieveProcessor sieveProcessor) { this.context = context; this.sieveProcessor = sieveProcessor; CategoryEntite = context.Set <Category>(); CategoryPropertyRepository = new CategoryPropertyRepository(context); BrandRepository = new BrandRepository(context, sieveProcessor); }
public UsersAPIService(DatabaseContext db, IMapper mapper, ISieveProcessor sieveProcessor, IAuthService authService, IPasswordService passwordService) { m_db = db; m_mapper = mapper; m_sieveProcessor = sieveProcessor; m_authService = authService; m_passwordService = passwordService; }
public UsersController(DatabaseContext db, ISieveProcessor sieveProcessor, IMapper mapper, IAuthService authService, IPasswordService passwordService) { this.db = db; this.sieveProcessor = sieveProcessor; this.mapper = mapper; this.authService = authService; this.passwordService = passwordService; }
public RoomService(IRepositoryWrapper repoWrapper, IMapper mapper, IParamService param, ISieveProcessor sieveProcessor) { _repoWrapper = repoWrapper; _mapper = mapper; _param = param; _sieveProcessor = sieveProcessor; }
public UserService(IOptions <AuthenticationSetting> authSettings, IRepositoryWrapper repoWrapper, ISieveProcessor sieveProcessor, IMapper mapper) { _authSettings = authSettings.Value; _repoWrapper = repoWrapper; _sieveProcessor = sieveProcessor; _mapper = mapper; }
public UsersRepository(FilmstanContext context, ISieveProcessor sieveProcessor) { this.context = context; this.sieveProcessor = sieveProcessor; Users = context.Set <User>(); UsersRoleRepository = new UserRoleRepository(context); ActivationCodeRepository = new ActivationCodeRepository(context); }
public NewsService(IRepositoryWrapper repoWrapper, IMapper mapper, IAdminService admin, ISieveProcessor sieveProcessor) { _repoWrapper = repoWrapper; _mapper = mapper; _admin = admin; _sieveProcessor = sieveProcessor; }
public ProductsAPIService(DatabaseContext db, IMapper mapper, ISieveProcessor sieveProcessor, IAuthService authService, IProductsFileRepoService productsFileRepo) { m_db = db; m_mapper = mapper; m_sieveProcessor = sieveProcessor; m_authService = authService; m_productsFileRepo = productsFileRepo; }
public UserService(IAppSettings appSettings, DbContext context, SieveProcessor sieveProcessor, IEmailProvider emailProvider) { _context = context ?? throw new NullReferenceException(nameof(context)); _appSettings = appSettings ?? throw new NullReferenceException(nameof(appSettings)); _sieveProcessor = sieveProcessor ?? throw new NullReferenceException(nameof(sieveProcessor)); _emailProvider = emailProvider ?? throw new NullReferenceException(nameof(emailProvider)); this._userInfoService = new UserInfoService(context); }
public static int ApplyAndCount <T>(this ISieveProcessor sieveProcessor, SieveModel sieveModel, ref IQueryable <T> entries) where T : IEntity { entries = sieveProcessor.Apply(sieveModel, entries, applyPagination: false); var count = entries.Count(); entries = sieveProcessor.Apply(sieveModel, entries, applyFiltering: false, applySorting: false); return(count); }
public RoomTransferService(IRepositoryWrapper repoWrapper, IMapper mapper, ISieveProcessor sieveProcessor, IStudentService studentService, IParamService paramService, IUserService userService) { _repoWrapper = repoWrapper; _mapper = mapper; _sieveProcessor = sieveProcessor; _studentService = studentService; _paramService = paramService; _userService = userService; }
public List <TEntityDto> Filter(FilterParam filterParam) { ISieveProcessor _sieveProcessor = IocManager.Instance.Resolve <ISieveProcessor>(); var result = WorkScope.GetRepo <TEntity, long>().GetAll(); result = IncludeRelationship(filterParam, result); result = _sieveProcessor.Apply(filterParam, result); return(ObjectMapper.Map <List <TEntityDto> >(result.ToList())); }
public EFDomainUnitofWork(FilmstanContext context, ISieveProcessor sieveProcessor) { this.context = context; this.sieveProcessor = sieveProcessor; SettingRepository = new SettingRepository(context); RoleRepository = new RolesRepository(context, sieveProcessor); UsersRepository = new UsersRepository(context, sieveProcessor); CategoryRepository = new CategoryRepository(context, sieveProcessor); PostMagazineRepository = new PostMagazineRepository(context); }
public ProfileController(RelationalDbContext context, IAccessService <ApplicationUser> accessService, IRoleHelper roleHelper, UserManager <ApplicationUser> userManager, ISieveProcessor sieveProcessor) : base(context, userManager) { _accessService = accessService; _sieveProcessor = sieveProcessor; _roleHelper = roleHelper; }
public CardTemplateQueryHandler(ILogger <CardTemplateQueryHandler> logger, IDocumentStore context, IMapper mapper, ISieveProcessor sieveProc, IOptions <SieveOptions> sortFilterPagingOptions, IReadOnlyPolicyRegistry <string> registry) { _logger = logger; _docStore = context; _mapper = mapper; _sortFilterPagingProcessor = sieveProc; _sortFilterPagingOptions = sortFilterPagingOptions; _policyRegistry = registry; }
public EquipmentService(IRepositoryWrapper repoWrapper, IMapper mapper, IAdminService admin, IRoomService room, IParamService param, ISieveProcessor sieveProcessor) { _repoWrapper = repoWrapper; _mapper = mapper; _admin = admin; _room = room; _param = param; _sieveProcessor = sieveProcessor; }
public static IQueryable <TEntity> Apply <TEntity>(this ISieveProcessor sieveProcessor, SieveModel model, IQueryable <TEntity> source, out int totalCount, object[] dataForCustomMethods = null) where TEntity : AuditableEntity { source = sieveProcessor.Apply(model, source, dataForCustomMethods, applyPagination: false); totalCount = source.Count(); source = sieveProcessor.Apply(model, source, dataForCustomMethods, applyFiltering: false, applySorting: false); return(source); }
public PromoterGetter( ISqlDbContext context, IMapper mapper, IUserGetter userGetter, ISieveProcessor sieveProcessor) { _context = context; _mapper = mapper; _userGetter = userGetter; _sieveProcessor = sieveProcessor; }
public AssetCategoryService(IAssetCategoryRepository assetCategoryRepository, IMapper mapper, IBus bus, ISieveProcessor sieveProcessor, IOptions <SieveOptions> sieveOptions) { _assetCategoryRepository = assetCategoryRepository; _mapper = mapper; _bus = bus; _sieveProcessor = sieveProcessor; _sieveOptions = sieveOptions.Value; }