Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm started learning LINQ and I think that is great but i have one problem.

How I can use % in writing linq queries, in SQL i could „SELECT * FROM CUSTOMERS WHERE FIRST_NAME LIKE 'AL%'“. How I can that SQL query translate in LINQ.

Thanks!
Posted

you could say item.FirstName.StartsWith("AL")
 
Share this answer
 
Comments
bbirajdar 13-Aug-12 6:37am    
Exactly..........
SQL
here i am posting some thing about Linq basic operation select, insert, delete, update.

http://suhasharidas.blogspot.in/2012/08/create-linq-to-sql-connection-with.html[^]
 
Share this answer
 
Comments
bbirajdar 13-Aug-12 6:38am    
No spamming please.. This is too old question to answer and the OP has already marked it solved. Morever the answer is repost and not a answer at all. Do care to read the question before posting

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