• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IProductRepository类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IProductRepository的典型用法代码示例。如果您正苦于以下问题:C# IProductRepository类的具体用法?C# IProductRepository怎么用?C# IProductRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IProductRepository类属于命名空间,在下文中一共展示了IProductRepository类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ProductService

        public ProductService(
                            IProductRepository productRepository,
                            ICacheStorage cacheStorage,
                            IConfigurationRepository configurationRepository,
                            ILoggingService loggingService)
        {
            if (productRepository == null)
            {
                throw new ArgumentNullException("ProductRepository");
            }

            if (cacheStorage == null)
            {
                throw new ArgumentNullException("CacheStorage");
            }

            if (configurationRepository == null)
            {
                throw new ArgumentException("Configuration");
            }

            if (loggingService == null)
            {
                throw new ArgumentException("Logging");
            }

            this._productRepository = productRepository;
            this._cacheStorage = cacheStorage;
            this._configurationRepository = configurationRepository;
            this._loggingService = loggingService;
        }
开发者ID:richardkundl,项目名称:SampleDI-IoC,代码行数:31,代码来源:ProductService.cs


示例2: ProductPresenter

 public ProductPresenter(IProductView view, IProductRepository repository, IOpenFileDialog openFileDialog)
 {
     this.view = view;
     view.Initialize(this);
     this.repository = repository;
     this.openFileDialog = openFileDialog;
 }
开发者ID:snahider,项目名称:SOLID,代码行数:7,代码来源:ProductPresenter.cs


示例3: BuyerRepositoryService

 public BuyerRepositoryService()
 {
     IoCManagerCore.Start();
     _buyerRepository = IoCManagerCore.Kernel.Get<IBuyerRepository>();
     _productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
     _wrapper = new WrapperBuyer();
 }
开发者ID:AndrewGumenyuk,项目名称:ManagerPaycheck,代码行数:7,代码来源:BuyerRepositoryService.svc.cs


示例4: AddInvoiceLineItemCommandHandler

 public AddInvoiceLineItemCommandHandler(IInvoiceRepository documentRepository, IProductRepository productRepository, CokeDataContext cokeDataContext) 
     : base(cokeDataContext)
 {
     _cokeDataContext = cokeDataContext;
     _documentRepository = documentRepository;
     _productRepository = productRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:AddInvoiceLineItemCommandHandler.cs


示例5: CartController

 //El constructor va a pedir que le pasen el producto
 public CartController(
     IProductRepository productRepository,
     IOrderProcessor orderProcessor)
 {
     _productRepository = productRepository;
     _orderProcessor = orderProcessor;
 }
开发者ID:jesulink2514,项目名称:LearnITStore,代码行数:8,代码来源:CartController.cs


示例6: HomeController

 public HomeController(ICategoryRepository categoryRepository, IProductRepository productRepository,
     IConstants constants)
 {
     _categoryRepository = categoryRepository;
     _productRepository = productRepository;
     _constants = constants;
 }
开发者ID:stephengodbold,项目名称:searchpdproj,代码行数:7,代码来源:HomeController.cs


示例7: EcommerceService

        public EcommerceService(IOrderCoordinator orderCoordinator, IProductRepository productRepository,
            IVoucherRepository voucherRepository, IContactService contactService,
            IBespokePricingHandlerFactory bespokePricingHandlerFactory)
        {
            if (orderCoordinator == null)
            {
                throw new ArgumentNullException("orderCoordinator");
            }
            _orderCoordinator = orderCoordinator;
            if (productRepository == null)
            {
                throw new ArgumentNullException("productRepository");
            }
            _productRepository = productRepository;
            if (voucherRepository == null)
            {
                throw new ArgumentNullException("voucherRepository");
            }
            _voucherRepository = voucherRepository;
            if (contactService == null) throw new ArgumentNullException("contactService");
            _contactService = contactService;

            if (bespokePricingHandlerFactory == null)
            {
                throw new ArgumentNullException("bespokePricingHandlerFactory");
            }
            _bespokePricingHandlerFactory = bespokePricingHandlerFactory;
        }
开发者ID:jamesdrever,项目名称:cpx,代码行数:28,代码来源:ECommerceService.cs


示例8: ProductDetailsPresenter

        public ProductDetailsPresenter(IProductDetailsView view, IProductRepository productRepository,
		                               IEntityViewModelMapper entityViewModelMapper)
        {
            _view = view;
            _productRepository = productRepository;
            _entityViewModelMapper = entityViewModelMapper;
        }
开发者ID:davidadsit,项目名称:MVPWebFormsReferenceArchitecture,代码行数:7,代码来源:ProductDetailsPresenter.cs


示例9: SearchController

 public SearchController(ISubcategoryProductRepository subcategoryProductRepository, IProductRepository productRepository, 
     ProductFilterViewModel productFilterViewModel)
 {
     this.subcategoryProductRepository = subcategoryProductRepository;
     this.productRepository = productRepository;
     this.productFilterViewModel = productFilterViewModel;
 }
开发者ID:HoenDHime,项目名称:eShop,代码行数:7,代码来源:SearchController.cs


示例10: ProductTypeRepositoryService

 public ProductTypeRepositoryService()
 {
     IoCManagerCore.Start();
      wrapperTypeProduct = new WrapperProductType();
     _productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
     _productTypeRepository = IoCManagerCore.Kernel.Get<IProductTypeRepository>();
 }
开发者ID:AndrewGumenyuk,项目名称:ManagerPaycheck,代码行数:7,代码来源:ProductTypeRepositoryService.svc.cs


示例11: ProductCatalogService

        public ProductCatalogService(IProductTitleRepository productTitleRepository, IProductRepository productRepository,
			ICategoryRepository categoryRepository)
        {
            _productTitleRepository = productTitleRepository;
            _productRepository = productRepository;
            _categoryRepository = categoryRepository;
        }
开发者ID:afrancocode,项目名称:Storefront,代码行数:7,代码来源:ProductCatalogService.cs


示例12: CartServiceTests

 public CartServiceTests()
 {
     factory = Substitute.For<ICartFactory>();
     cartRepository = Substitute.For<ICartRepository>();
     productRepository = Substitute.For<IProductRepository>();
     sut = new CartService(cartRepository, productRepository, factory);
 }
开发者ID:SergeyVolodko,项目名称:WebShopTask,代码行数:7,代码来源:CartServiceTests.cs


示例13: ProductController

 public ProductController(IProductRepository productRepo,
                         ICategoryRepository categoryRepo)
 {
     _categoryRepo = categoryRepo;
     _productRepo = productRepo;
     PageSize = 5;
 }
开发者ID:awt2gbg2012,项目名称:Lektion12,代码行数:7,代码来源:ProductController.cs


示例14: ProductController

        public ProductController(IProductDataService productDataService, 
            IBrandDataService brandDataService,
            IOrderRepository orderRepo,
            IOrderItemRepository orderItemRepo,
            IOrderLogRepository orderLogRepo,
            IProductRepository productRepo,
            IFavoriteRepository favoriteRepo,
            IPromotionRepository promotionRepo,
            IOrder2ExRepository orderexRepo,
            IRMA2ExRepository rmaexRepo,
           IInventoryRepository inventoryRepo)
        {
            _productDataService = productDataService;
            _passHelper = new PassHelper(brandDataService);
            _orderRepo = orderRepo;
            _orderItemRepo = orderItemRepo;
            _orderLogRepo = orderLogRepo;
            _productRepo = productRepo;
            _favoriteRepo = favoriteRepo;
            _promotionRepo = promotionRepo;
            _orderexRepo = orderexRepo;
            _rmaexRepo = rmaexRepo;
            _inventoryRepo = inventoryRepo;

        }
开发者ID:shimerlj,项目名称:ytoo.service,代码行数:25,代码来源:ProductController.cs


示例15: ProductController

 public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, 
     ICategoryPresenter categoryPresenter)
 {
     _productRepository = productRepository;
     _categoryRepository = categoryRepository;
     _categoryPresenter = categoryPresenter;
 }
开发者ID:alpinebreeze,项目名称:CatalogManager,代码行数:7,代码来源:ProductController.cs


示例16: PointOfSale

 public PointOfSale(IProductRepository productRepository)
 {
     this.ProductRepository = productRepository;
     LCDisplayDevice = new LCDDisplayDevice();
     Products = new List<Product>();
     Printer = new Printer();
 }
开发者ID:dirt0412,项目名称:training.NET,代码行数:7,代码来源:PointOfSale.cs


示例17: ProductController

 public ProductController(IProductRepository pRepository, IConfigRepository conf, ICategoryRepository cRep, ICategoryRepository catRep)
 {
     _cRep = cRep;
     _pRepository = pRepository;
     _conf = conf;
     _catRep = catRep;
 }
开发者ID:crew1248,项目名称:web_store,代码行数:7,代码来源:ProductController.cs


示例18: ProductDiscountGroupImporterService

 public ProductDiscountGroupImporterService(IProductDiscountGroupRepository productDiscountGroupRepository, CokeDataContext context, IDiscountGroupRepository discountGroupRepository, IProductRepository productRepository)
 {
     _productDiscountGroupRepository = productDiscountGroupRepository;
     _context = context;
     _discountGroupRepository = discountGroupRepository;
     _productRepository = productRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ProductDiscountGroupImporterService.cs


示例19: OrderApplicationService

 public OrderApplicationService(IOrderRepository orderRepository, IUserRepository userRepository, IProductRepository productRepository, IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     this._orderRepository = orderRepository;
     this._userRepository = userRepository;
     this._productRepository = productRepository;
 }
开发者ID:andrebaltieri,项目名称:mwa-api,代码行数:7,代码来源:OrderApplicationService.cs


示例20: ProductViewModelBuilder

 //IReturnablesRepository _returnablesRepository;
 public ProductViewModelBuilder( IProductRepository productRepository,
                                 IProductFactory productFactory,
                                 IProductPackagingRepository productPackagingRepository, 
                                 IProductPackagingTypeRepository productPackagingTypeRepository,
                                 IProductBrandRepository productBrandRepository,
                                 IProductTypeRepository productTypeRepository,
                                 IProductFlavourRepository productFlavourFactory,
     IProductPricingTierRepository productPricingTier,
     IProductPricingFactory productPricingFactory,
 IProductPricingRepository productPricingRepository,
     IVATClassRepository vatClassRepository,
     IAuditLogRepository auditLogRepository
     //IReturnablesRepository returnablesRepository
     )
 {
     _productRepository = productRepository;
     _productFactory = productFactory;
     _productBrandRepository = productBrandRepository;
     _productPackagingRepository = productPackagingRepository;
     _productPackagingTypeRepository = productPackagingTypeRepository;
     _productTypeRepository = productTypeRepository;
     _productFlavourRepository = productFlavourFactory;
     _productPricingFactory = productPricingFactory;
     _productPricingRepository = productPricingRepository;
     _productPricingTier = productPricingTier;
     _vatClassRepository = vatClassRepository;
     _auditLogRepository = auditLogRepository;
     //_returnablesRepository = returnablesRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:30,代码来源:ProductViewModelBuilder.cs



注:本文中的IProductRepository类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IProductService类代码示例发布时间:2022-05-24
下一篇:
C# IProductAttributeService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap