コード例 #1
0
        public CategoryController(ICategoryQuery query, ICategoryCommand command)
        {
            Ensure.Any.IsNotNull(command, nameof(command));
            Ensure.Any.IsNotNull(query, nameof(query));

            _command = command;
            _query   = query;
        }
コード例 #2
0
ファイル: SaleOrderController.cs プロジェクト: radtek/EBS
 public SaleOrderController(IContextService contextService, ISaleOrderQuery saleQuery, ICategoryQuery categoryQuery, ISaleReportFacade saleReportFacade, IExcel excelService)
 {
     _saleOrderQuery     = saleQuery;
     this._context       = contextService;
     this._categoryQuery = categoryQuery;
     _saleReportFacade   = saleReportFacade;
     this._excelService  = excelService;
 }
コード例 #3
0
ファイル: ProductController.cs プロジェクト: radtek/EBS
 public ProductController(IContextService context, IQuery query, IProductQuery productQuery, IProductFacade productFacade, ICategoryQuery categoryQuery, ILogger log)
 {
     this._query         = query;
     this._productQuery  = productQuery;
     this._productFacade = productFacade;
     this._categoryQuery = categoryQuery;
     this._context       = context;
     _log = log;
 }
コード例 #4
0
 public ReportController(IContextService contextService, IReportQuery reportQuery, IQuery query, IPurchaseSaleInventoryFacade psiFacade, ICategoryQuery categoryQuery, IExcel excelService)
 {
     _reportQuery  = reportQuery;
     this._context = contextService;
     _query        = query;
     _purchaseSaleInventoryFacade = psiFacade;
     this._categoryQuery          = categoryQuery;
     this._excelService           = excelService;
 }
コード例 #5
0
ファイル: SupplierController.cs プロジェクト: radtek/EBS
 public SupplierController(IContextService context, IQuery query, ISupplierQuery supplierQuery, ISupplierFacade supplierFacade, IAreaQuery areaQuery, ICategoryQuery _categoryQuery)
 {
     this._context        = context;
     this._query          = query;
     this._supplierQuery  = supplierQuery;
     this._supplierFacade = supplierFacade;
     this._areaQuery      = areaQuery;
     this._categoryQuery  = _categoryQuery;
 }
コード例 #6
0
 public StoreInventoryController(IContextService contextService, IQuery query, IStoreInventoryQuery storeInventoryQuery, IAreaQuery areaQuery, ICategoryQuery categoryQuery, IExcel iexcel)
 {
     this._query = query;
     this._storeInventoryQuery = storeInventoryQuery;
     this._areaQuery           = areaQuery;
     this._context             = contextService;
     this._categoryQuery       = categoryQuery;
     this._excelService        = iexcel;
 }
コード例 #7
0
        public ProfileQuery(
            IProfileStore store,
            IProfileCache cache,
            ICategoryQuery query)
        {
            Ensure.Any.IsNotNull(store, nameof(store));
            Ensure.Any.IsNotNull(cache, nameof(cache));
            Ensure.Any.IsNotNull(query, nameof(query));

            _store = store;
            _cache = cache;
            _query = query;
        }
コード例 #8
0
 public CategoryManagerController(
     ICategoryManager categoryManager,
     INotifiable <DomainNotification> domainNotification,
     INotifiable <CategoryRegistered> categoryRegistered,
     INotifiable <CategoryUpdated> categoryUpdated,
     INotifiable <CategoryRemoved> categoryRemoved,
     ICategoryQuery categoryQuery)
 {
     _categoryManager    = categoryManager;
     _domainNotification = domainNotification;
     _categoryRegistered = categoryRegistered;
     _categoryUpdated    = categoryUpdated;
     _categoryRemoved    = categoryRemoved;
     _categoryQuery      = categoryQuery;
 }
コード例 #9
0
        public ProfileSearchQuery(
            ICategoryQuery query,
            IProfileStore profileStore,
            ICategoryLinkStore linkStore,
            IProfileCache profileCache,
            ICategoryCache cache)
        {
            Ensure.Any.IsNotNull(profileStore, nameof(profileStore));
            Ensure.Any.IsNotNull(linkStore, nameof(linkStore));
            Ensure.Any.IsNotNull(cache, nameof(cache));
            Ensure.Any.IsNotNull(query, nameof(query));
            Ensure.Any.IsNotNull(profileCache, nameof(profileCache));

            _profileStore = profileStore;
            _linkStore    = linkStore;
            _cache        = cache;
            _query        = query;
            _profileCache = profileCache;
        }
コード例 #10
0
        private async Task <bool> ProcessCatAsync(TCat cat, ICategoryQuery <TCat> query)
        {
            cat.Parent = query.Parent ?? await _parentEntityProvider.GetModelParentAsync(cat);

            if (query.LoadLastItems != null)
            {
                cat.Items = await GetCatItemsAsync(cat, (int)query.LoadLastItems);
            }
            if (query.LoadChildren)
            {
                await DBContext.Entry(cat).Collection(x => x.Children).LoadAsync();

                foreach (var child in cat.Children)
                {
                    await ProcessCatAsync(child, query);
                }
            }

            return(true);
        }
コード例 #11
0
 public ArticleCategoryProcessQuery(ArticleCat cat, ICategoryQuery <ArticleCat> query) : base(cat, query)
 {
 }
コード例 #12
0
 public CategoryWithProductsViewComponent(ICategoryQuery categoryQuery) => _categoryQuery = categoryQuery;
コード例 #13
0
 public CategoryModel(ICategoryQuery categoryQuery) => _categoryQuery = categoryQuery;
コード例 #14
0
 public CategoryService(ICategoryRepository <ICategory> categoryRepository,
                        ICategoryQuery categoryQuery)
 {
     _categoryRepository = categoryRepository;
     _categoryQuery      = categoryQuery;
 }
コード例 #15
0
 public CategoryController(ICategoryQuery categoryQuery, ICommandBus commandBus)
 {
     _categoryQuery = categoryQuery;
     _commandBus    = commandBus;
 }
コード例 #16
0
 public GalleryCategoryProcessQuery(GalleryCat cat, ICategoryQuery <GalleryCat> query) : base(cat, query)
 {
 }
コード例 #17
0
ファイル: CategoryController.cs プロジェクト: radtek/EBS
 public CategoryController(IQuery query, ICategoryQuery categoryQuery, ICategoryFacade categoryFacade)
 {
     this._query          = query;
     this._categoryQuery  = categoryQuery;
     this._categoryFacade = categoryFacade;
 }
コード例 #18
0
 public FileCategoryProcessQuery(FileCat cat, ICategoryQuery <FileCat> query) : base(cat, query)
 {
 }
コード例 #19
0
 public MenuViewComponent(IOrderQuery orderQuery, ICategoryQuery categoryQuery, IArticleCategoryQuery articleCategoryQuery)
 {
     _orderQuery           = orderQuery;
     _categoryQuery        = categoryQuery;
     _articleCategoryQuery = articleCategoryQuery;
 }
コード例 #20
0
 public CategoryRepository(ICategoryCommand categoryCommand, ICategoryQuery categoryQuery)
 {
     _categoryCommand = categoryCommand;
     _categoryQuery   = categoryQuery;
 }
コード例 #21
0
 protected CategoryProcessQueryBase(TCat cat, ICategoryQuery <TCat> query)
 {
     Cat           = cat;
     CategoryQuery = query;
 }
コード例 #22
0
 public CategoryViewComponent(ICategoryQuery query) => _query = query;