本文整理汇总了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>();
}
示例2: InvoiceExportDocumentRepository
public InvoiceExportDocumentRepository(CokeDataContext ctx, IInvoiceRepository invoiceRepository,
IMainOrderRepository orderRepository)
{
_ctx = ctx;
_invoiceRepository = invoiceRepository;
_orderRepository = orderRepository;
}
示例3: ConfirmInventoryReceivedNoteCommandHandler
public ConfirmInventoryReceivedNoteCommandHandler(IInventoryReceivedNoteRepository documentRepository, IInventoryWorkflow inventoryWorkflow,
CokeDataContext cokeDataContext) : base(cokeDataContext)
{
_cokeDataContext = cokeDataContext;
_documentRepository = documentRepository;
_inventoryWorkflow = inventoryWorkflow;
}
示例4: ReceiptExportDocumentRepository
public ReceiptExportDocumentRepository(CokeDataContext ctx, IReceiptRepository receiptRepository, IMainOrderRepository mainOrderRepository, IRouteRepository routeRepository)
{
_ctx = ctx;
_receiptRepository = receiptRepository;
_mainOrderRepository = mainOrderRepository;
_routeRepository = routeRepository;
}
示例5: AreaImporterService
public AreaImporterService(CokeDataContext context, IAreaRepository areaRepository, IRegionRepository regionRepository)
{
_areaRepository = areaRepository;
_regionRepository = regionRepository;
_context = context;
}
示例6: ProductDiscountGroupImporterService
public ProductDiscountGroupImporterService(IProductDiscountGroupRepository productDiscountGroupRepository, CokeDataContext context, IDiscountGroupRepository discountGroupRepository, IProductRepository productRepository)
{
_productDiscountGroupRepository = productDiscountGroupRepository;
_context = context;
_discountGroupRepository = discountGroupRepository;
_productRepository = productRepository;
}
示例7: DistrictImportService
public DistrictImportService(IDistrictRepository repository, IDTOToEntityMapping mappingService, CokeDataContext ctx, List<ImportValidationResultInfo> validationResultInfos)
{
_repository = repository;
_mappingService = mappingService;
_ctx = ctx;
this.validationResultInfos = validationResultInfos;
}
示例8: ConfirmMainOrderCommandHandler
public ConfirmMainOrderCommandHandler(
CokeDataContext cokeDataContext)
: base(cokeDataContext)
{
_cokeDataContext = cokeDataContext;
}
示例9: ConfirmInvoiceCommandHandler
public ConfirmInvoiceCommandHandler(IFinancialsWorkflow financialsWorkflow, IInvoiceRepository documentRepository, CokeDataContext cokeDataContext)
: base(cokeDataContext)
{
_financialsWorkflow = financialsWorkflow;
_documentRepository = documentRepository;
_cokeDataContext = cokeDataContext;
}
示例10: ProductFlavourImportService
public ProductFlavourImportService(IProductFlavourRepository repository, IDTOToEntityMapping mappingService, CokeDataContext ctx)
{
_repository = repository;
_mappingService = mappingService;
_ctx = ctx;
validationResultInfos=new List<ImportValidationResultInfo>();
}
示例11: ConfirmReceiptCommandHandler
public ConfirmReceiptCommandHandler(IFinancialsWorkflow financialsWorkflow, CokeDataContext context, IReceiptRepository receiptRepository)
:base(context)
{
_cokeDataContext = context;
_financialsWorkflow = financialsWorkflow;
_receiptRepository =receiptRepository;
}
示例12: ChannelPackagingImportService
public ChannelPackagingImportService(IDTOToEntityMapping mappingService, IChannelPackagingRepository repository, CokeDataContext ctx)
{
_mappingService = mappingService;
_repository = repository;
_ctx = ctx;
validationResultInfos=new List<ImportValidationResultInfo>();
}
示例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;
}
}
示例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);
}
示例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");
}