Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we use the LIKE in LINQ

as i would like to take the names from source which starts with s,if we want the same in SQL we will jus use LIKE operator

My LINQ query is

var vResult=from data in strName where data LIKE ="s%" select Data
Posted

1 solution

 
Share this answer
 
Comments
$aikumar$ Cilamkoti 13-Sep-11 11:39am    
Thanks
digimanus

U R Genius Buddy,
$aikumar$ Cilamkoti 13-Sep-11 13:37pm    
hey digimanus can you give me the situation where we can use sqlmethods class

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900