开发者

Not a member of type<type> in the currently loaded schema

I have query for EDM in the codebehind as below, searchString contains the text that should be searched.

context.Applicants.OrderBy("it." + sortExpression).Include("FSWorker").
Where("it.[CaseName] like '%'" + searchString + "'%'").ToList();

throwing an error 'ash' is not a member of type 'SCDSS_ApplicationDataModel.Applicant' in the currently loaded schemas. Near si开发者_运维技巧mple identifier, line 8, column 4.


I think you have spare single quotes on the inner side of your % symbols in the where clause ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜