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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ranjit PowarRank #553 · 4.4K reputationPosted Apr 22, 2016, 2:11 AM EDT
Ranjit PowarRank #553 · 4.4K reputationPosted Apr 22, 2016, 3:33 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Apr 22, 2016, 2:08 AM EDT
Posted Apr 22, 2016, 2:31 AM EDT
Ranjit PowarRank #553 · 4.4K reputationPosted Apr 22, 2016, 2:35 AM EDT
Posted Apr 22, 2016, 3:01 AM EDT
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.
Posted Apr 22, 2016, 4:32 AM EDT