当前位置: 首页>>代码示例>>C#>>正文


C# EF.CokeDataContext类代码示例

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


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


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