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.
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
Michal HabalcikRank #902 · 2.3K reputationPosted Dec 15, 2014, 8:22 PM EST
http://www.c-sharpcorner.com/code/321/how-do-i-use-sql-like-functionality-in-linq.aspx
Saber ShaikhRank #1,687 · 905 reputationPosted Dec 15, 2014, 8:28 PM EST
Thank You
http://aspnettutorialscode.blogspot.in/