LINQ to Entities无法识别方法'Double(System.String,System.String)'方法

时间:2015-01-21 04:13:13

标签: c# linq linq-to-entities

  LocalPrecedentEntities _local = new LocalPrecedentEntities();
            SES1 ses1 = new SES1();
            var precedent =  from p in _local.Precedent__case_
                             where ses1.FindSES1(query.ToLower(), p.Query.ToLower()) < 80
                             select p;
            if (precedent.Count() <= 0)
            {
                var iSites = this.getSitesFromDB(query, queryType);
                return iSites;
            }
            else
            {
                var sites = new List<string>();
            foreach (var p in precedent)
            {

                var pSite = from r in _local.Result
                            where r.ResultId == p.ResultId
                            select r.SiteId;
                sites.AddRange(pSite);
            }

我收到如下错误。问题出在哪儿?请有人可以提供建议吗?感谢。

  

LINQ to Entities无法识别方法&#39; Double FindSES1(System.String,System.String)&#39;方法,并且此方法无法转换为商店表达式。

0 个答案:

没有答案