第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

LINQ to Entities無法識別方法'Double Parse(System.String)

LINQ to Entities無法識別方法'Double Parse(System.String)

繁花如伊 2019-09-02 14:50:17
我嘗試運(yùn)行報告時收到錯誤。問題出在這里:model.Referring = Math.Round(_newSurveyResult.Select(m => string.IsNullOrEmpty(m.Question1) ? 0 : Double.Parse(m.Question1)).Average());public class SummaryDetails{    public int ChannelId { get; set; }    public int ChannelGroupId { get; set; }    public string Question1 { get; set; }    public string Question2 { get; set; }    public string Question3 { get; set; }    public string Question4 { get; set; }    public int OrganizationId { get; set; }}public ActionResult AreaManager(AreaManagerModel model){    model.ShowCustomerReport = false;    model.ShowSurveyReport = true;    LoadModelVariablesonPostBack(model, 8);    var _newSurveyResult = (        from ls in SessionHandler.CurrentContext.LennoxSurveyResponses        join ml in SessionHandler.CurrentContext.MailingListEntries on ls.SurveyCode equals ml.SurveyCode        join m in SessionHandler.CurrentContext.MailingLists on ml.MailingListId equals m.MailingListId        join ch in SessionHandler.CurrentContext.Channels on m.ChannelId equals ch.ChannelId        join cg in SessionHandler.CurrentContext.ChannelGroups on ch.ChannelGroupId equals cg.ChannelGroupId        join dcg in SessionHandler.CurrentContext.ChannelGroups on cg.ParentChannelGroupId equals dcg.ChannelGroupId        join ncg in SessionHandler.CurrentContext.ChannelGroups on dcg.ParentChannelGroupId equals ncg.ChannelGroupId        join pcg in SessionHandler.CurrentContext.ChannelGroups on ncg.ParentChannelGroupId equals pcg.ChannelGroupId        select new SummaryDetails {             OrganizationId = ch.OrganizationId,            Question1 = ls.Question1Answer,            Question2 = ls.Question2Answer,            Question3 = ls.Question3Answer,            Question4 = ls.Question4Answer,            ChannelId = ch.ChannelId,            ChannelGroupId = model.TMId != 0 ? cg.ChannelGroupId : model.DistrictId != 0 ? dcg.ChannelGroupId : model.AreaId != 0 ? ncg.ChannelGroupId :        }    );
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 385 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號