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

C# EF.CokeDataContext类代码示例

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

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



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

示例1: DistributorsImportService

 public DistributorsImportService(ICostCentreRepository repository, IDTOToEntityMapping mappingService, CokeDataContext ctx)
 {
     _repository = repository;
     _mappingService = mappingService;
     _ctx = ctx;
     validationResultInfos = new List<ImportValidationResultInfo>();
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:DistributorsImportService.cs


示例2: InvoiceExportDocumentRepository

 public InvoiceExportDocumentRepository(CokeDataContext ctx, IInvoiceRepository invoiceRepository,
                                        IMainOrderRepository orderRepository)
 {
     _ctx = ctx;
     _invoiceRepository = invoiceRepository;
     _orderRepository = orderRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:InvoiceExportDocumentRepository.cs


示例3: ConfirmInventoryReceivedNoteCommandHandler

 public ConfirmInventoryReceivedNoteCommandHandler(IInventoryReceivedNoteRepository documentRepository, IInventoryWorkflow inventoryWorkflow,
     CokeDataContext cokeDataContext) : base(cokeDataContext)
 {
     _cokeDataContext = cokeDataContext;
     _documentRepository = documentRepository;
     _inventoryWorkflow = inventoryWorkflow;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ConfirmInventoryReceivedNoteCommandHandler.cs


示例4: ReceiptExportDocumentRepository

 public ReceiptExportDocumentRepository(CokeDataContext ctx, IReceiptRepository receiptRepository, IMainOrderRepository mainOrderRepository, IRouteRepository routeRepository)
 {
     _ctx = ctx;
     _receiptRepository = receiptRepository;
     _mainOrderRepository = mainOrderRepository;
     _routeRepository = routeRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ReceiptExportDocumentRepository.cs


示例5: AreaImporterService

 public AreaImporterService(CokeDataContext context, IAreaRepository areaRepository, IRegionRepository regionRepository)
 {
     _areaRepository = areaRepository;
     _regionRepository = regionRepository;
     _context = context;
    
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:AreaImporterService.cs


示例6: 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


示例7: DistrictImportService

 public DistrictImportService(IDistrictRepository repository, IDTOToEntityMapping mappingService, CokeDataContext ctx, List<ImportValidationResultInfo> validationResultInfos)
 {
     _repository = repository;
     _mappingService = mappingService;
     _ctx = ctx;
     this.validationResultInfos = validationResultInfos;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:DistrictImportService.cs


示例8: ConfirmMainOrderCommandHandler

 public ConfirmMainOrderCommandHandler(
      CokeDataContext cokeDataContext)
     : base(cokeDataContext)
 {
    
     _cokeDataContext = cokeDataContext;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ConfirmOrderCommandHandler.cs


示例9: ConfirmInvoiceCommandHandler

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


示例10: ProductFlavourImportService

 public ProductFlavourImportService(IProductFlavourRepository repository, IDTOToEntityMapping mappingService, CokeDataContext ctx)
 {
     _repository = repository;
     _mappingService = mappingService;
     _ctx = ctx;
     validationResultInfos=new List<ImportValidationResultInfo>();
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ProductFlavourImportService.cs


示例11: ConfirmReceiptCommandHandler

 public ConfirmReceiptCommandHandler(IFinancialsWorkflow financialsWorkflow, CokeDataContext context, IReceiptRepository receiptRepository)
     :base(context)
 {
     _cokeDataContext = context;
     _financialsWorkflow = financialsWorkflow;
     _receiptRepository =receiptRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ConfirmReceiptCommandHandler.cs


示例12: ChannelPackagingImportService

 public ChannelPackagingImportService(IDTOToEntityMapping mappingService, IChannelPackagingRepository repository, CokeDataContext ctx)
 {
     _mappingService = mappingService;
     _repository = repository;
     _ctx = ctx;
     validationResultInfos=new List<ImportValidationResultInfo>();
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ChannelPackagingImportService.cs


示例13: GetProducts

 IEnumerable<ImportEntity> GetProducts(ThirdPartyMasterDataQuery myQuery, out bool hasNext)
 {
    
     using (var ctx=new CokeDataContext(Con))
     {
         IQueryable<tblProduct> query=null;
         hasNext = false;
         if (Enumerable.Any<string>(myQuery.SearchTextList))
         {
             List<tblProduct> items = new List<tblProduct>();
             foreach (var productcode in myQuery.SearchTextList)
             {
                 var found = ctx.tblProduct.FirstOrDefault(
                     p =>
                     p.ProductCode.Trim().Equals(productcode.Trim(),
                                                 StringComparison.CurrentCultureIgnoreCase));
                 if (found != null)
                     items.Add(found);
             }
             if (!items.Any()) return null;
             return items.Select(Map);
         }
         return null;
     }
    
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:26,代码来源:MasterDataExportService.cs


示例14: ReceivedDeliveryRepository

 public ReceivedDeliveryRepository(CokeDataContext ctx, IContainerTypeRepository containerTypeRepository, ICostCentreRepository costCentreRepository, 
     IUserRepository userRepository, ICommodityRepository commodityRepository, ICommodityOwnerRepository commodityOwnerRepository, 
     ICommodityProducerRepository commodityProducerRepository)
     : base(containerTypeRepository, ctx, costCentreRepository, userRepository, commodityRepository, commodityOwnerRepository, commodityProducerRepository)
 {
     documents = _ctx.tblSourcingDocument.Where(s => s.DocumentTypeId == (int)DocumentType.ReceivedDelivery);
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ReceivedDeliveryRepository.cs


示例15: GenerateTestCommodityOwneres

 private void GenerateTestCommodityOwneres(CokeDataContext ctx)
 {
     var cTypes = ctx.tblCommodityOwner.Take(10).Select(n => new CommodityOwnerImport()
                                                                 {
                                                                     Code = n.Code,
                                                                     Description = n.Description,
                                                                     Email = n.Email,
                                                                     LastName = n.LastName,
                                                                     FaxNumber = n.FaxNo,
                                                                     PinNo = n.PINNo,
                                                                     BusinessNumber = n.PINNo,
                                                                     CommodityOwnerTypeName =
                                                                         n.tblCommodityOwnerType.Name,
                                                                     CommoditySupplierName = n.tblCostCentre.Name,
                                                                     DateOfBirth = n.DOB,
                                                                     GenderEnum = n.Gender,
                                                                     IdNo = n.IdNo,
                                                                     OfficeNumber = n.OfficeNo,
                                                                     PhoneNumber = n.PhoneNo,
                                                                     PostalAddress = n.PostalAddress,
                                                                     Surname = n.Surname,
                                                                     FirstName = n.FirstName,
                                                                     PhysicalAddress = n.PhysicalAddress,
                                                                 }).ToList();
     DumpExportFilesAsync(cTypes.ToCsv(), "farmers.csv");
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:26,代码来源:GenerateTestData.cs


示例16: ProductPackagingTypeImportService

 public ProductPackagingTypeImportService(IDTOToEntityMapping mappingService, IProductPackagingTypeRepository repository, CokeDataContext ctx)
 {
     _mappingService = mappingService;
     _repository = repository;
     _ctx = ctx;
     
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ProductPackagingTypeImportService.cs


示例17: ServiceProviderController

 public ServiceProviderController(IDTOToEntityMapping dtoToEntityMapping, IMasterDataToDTOMapping masterDataToDtoMapping, CokeDataContext context, IServiceProviderRepository serviceProviderRepository, IBankRepository bankRepository, IBankBranchRepository bankBranchRepository)
     : base(dtoToEntityMapping, masterDataToDtoMapping, context)
 {
     _serviceProviderRepository = serviceProviderRepository;
     _bankRepository = bankRepository;
     _bankBranchRepository = bankBranchRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:ServiceProviderController.cs


示例18: AddInvoiceLineItemCommandHandler

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


示例19: DistributorSalesmanImportService

 public DistributorSalesmanImportService(ICostCentreRepository costCentreRepository, ICostCentreFactory costCentreFactory, IUserRepository userRepository, CokeDataContext ctx)
 {
     _costCentreRepository = costCentreRepository;
     _costCentreFactory = costCentreFactory;
     _userRepository = userRepository;
     _ctx = ctx;
     _repositoryHelpers=new RepositoryHelpers(ctx);
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:8,代码来源:DistributorSalesmanImportService.cs


示例20: AddInventoryTransferNoteLineItemCommandHandler

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Utils.Environment类代码示例发布时间:2022-05-24
下一篇:
C# Disruptor.Sequence类代码示例发布时间: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