Ghouse Hussain

Ghouse Hussain

  • NA
  • 41
  • 24.8k

like command

Apr 22 2016 5:59 AM
please give me this query into Linq
select * from emp where ename Like '%s'
 
i had writen
 pub List<emp> GetLike()
{
var x=from n in db.emps
where n.ename=='%s' 
select n;
return x.tolist<emp>(); 
please Guide me 

Answers (7)