IEnumerable.select

   var algorithms = base.GetEntities<PolicyBaseAlgorithmEntity>(p => list.Contains(p.VersionID))
                    .Select<PolicyBaseAlgorithmEntity, AccountAlgorithmEntityExtend>(p => {
                        return new AccountAlgorithmEntityExtend
                        {
                            InsuranceStandardID = p.InsuranceStandardID,
                            ItemName = p.InsuranceStandardName,
                            IsOption = p.IsOption,
                            EnterpriseFormula = p.EnterpriseFormula,
                            EnterprisePercentage = p.EnterprisePercentage,
                            EnterprisePercentageMax = p.EnterprisePercentageMax,
                            EnterprisePercentageMin = p.EnterprisePercentageMin,
                            EnterprisePercentageIncrement = p.EnterprisePercentageIncrement,
                            EnterpriseAmount = p.EnterpriseAmount,
                            PersonalFormula = p.PersonalFormula,
                            PersonalPercentage = p.PersonalPercentage,
                            PersonalPercentageMax = p.PersonalPercentageMax,
                            PersonalPercentageMin = p.PersonalPercentageMin,
                            PersonalPercentageIncrement = p.PersonalPercentageIncrement,
                            PersonalAmount = p.PersonalAmount
                        };
                    });

 

posted @ 2015-12-15 10:18  江境纣州  阅读(66)  评论(0编辑  收藏  举报