how to use like keyword in linq query
query = query.Where
(s => s.tbl.Contains(tbl));
Contains() is translated LIKE '%term%' StartsWith() = LIKE 'term%' EndsWith() = LIKE '%term'
Thank You
how to use like keyword in linq query
query = query.Where
(s => s.tbl.Contains(tbl));
Contains() is translated LIKE '%term%' StartsWith() = LIKE 'term%' EndsWith() = LIKE '%term'
Thank You
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.
Michal HabalcikPosted Dec 16, 2014, 1:22 AM
http://www.c-sharpcorner.com/code/321/how-do-i-use-sql-like-functionality-in-linq.aspx
Saber ShaikhPosted Dec 16, 2014, 1:28 AM
Thank You
http://aspnettutorialscode.blogspot.in/