How to use "and " operator in where clause using LINQ

i need LINQ query like this

select * from tablename where col1 = value and col2 = value
ravindra333Asked:
Who is Participating?
 
naspinskiConnect With a Mentor Commented:

var results = from p in DataContext.tablename where col1 == value && col2 == value select p;

Open in new window

0
 
naspinskiCommented:
Curious to why this didn't get an A?  I answered your exact question...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.