please give me this query into Linq
select * from emp where ename Like '%s'
i had writen
pub List GetLike()
{
var x=from n in db.emps
where n.ename=='%s'
select n;
return x.tolist();
}
please Guide me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ranjit PowarPosted Apr 22, 2016, 6:11 AM
Posted Apr 22, 2016, 8:32 AM
Ranjit PowarPosted Apr 22, 2016, 7:33 AM
Posted Apr 22, 2016, 7:01 AM
LINQ to Entities does not recognize the method 'Boolean EndsWith(System.String, System.StringComparison)' method, and this method cannot be translated into a store expression.
Ranjit PowarPosted Apr 22, 2016, 6:35 AM
Posted Apr 22, 2016, 6:31 AM
Manas MohapatraPosted Apr 22, 2016, 6:08 AM