在以下查询中
var restrictions = from p in dcTrad.quop_restricted_items
where p.entry_status == 'P' && p.batch == "PRODUCTION" && p.problem != null
from q in dcTrad.model_companies
where q.co_name != null && p.brimsec == q.primary_bsec
select new { Company = q.co_name, Restriction = p.comment ?? "Restricted without comments", Portfolio = p.problem };
我需要更换
p.brimsec == q.primary_bsec
和
p.brimsec.StartsWith ( q.primary_bsec )
但我收到以下错误:
Only arguments that can be evaluated on the client are supported for the String.StartsWith method
我怎样才能使这项工作?