internal static Expression <Func <LotCustomerAllowance, LotCustomerAllowanceReturn> > Select() { var customerKey = CustomerProjectors.SelectKey(); return(a => new LotCustomerAllowanceReturn { CustomerKeyReturn = customerKey.Invoke(a.Customer), CustomerName = a.Customer.Company.Name }); }
internal static Expression <Func <LotSalesOrderAllowance, LotCustomerOrderAllowanceReturn> > Select() { var customerOrderKeyReturn = SalesOrderProjectors.SelectKey(); var customerKey = CustomerProjectors.SelectKey(); return(a => new LotCustomerOrderAllowanceReturn { SalesOrderKeyReturn = customerOrderKeyReturn.Invoke(a.SalesOrder), OrderNumber = a.SalesOrder.InventoryShipmentOrder.MoveNum, CustomerKeyReturn = customerKey.Invoke(a.SalesOrder.Customer), CustomerName = a.SalesOrder.Customer.Company.Name }); }
internal static Expression <Func <LotContractAllowance, LotContractAllowanceReturn> > Select() { var contractKey = ContractProjectors.SelectKey(); var customerKey = CustomerProjectors.SelectKey(); return(a => new LotContractAllowanceReturn { ContractKeyReturn = contractKey.Invoke(a.Contract), TermBegin = a.Contract.TermBegin, TermEnd = a.Contract.TermEnd, CustomerKeyReturn = customerKey.Invoke(a.Contract.Customer), CustomerName = a.Contract.Customer.Company.Name }); }