what is the not equal operator for linq to sql

What is the "not equal" operator in a linq to sql select statement

Say I have something like...

db.customers.Select(o => o).Where(o => o.surname ... DOES NOT EQUAL "SMITH"

What is the property syntax
mugseyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
crazymanConnect With a Mentor Commented:
!=
0
 
mugseyAuthor Commented:
OK thanks so what would be the syntax above to include the OR (||)  operator ?

db.customers.Select(o => o).Where(o => o.surname != "smith")  OR != "jones"??

0
 
GuitarRichConnect With a Mentor Commented:
db.customers.Select(o => o.surname != "smith" || o.surname != "jones")
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.