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
Who is Participating?

Improve company productivity with a Business Account.Sign Up

crazymanConnect With a Mentor Commented:
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"??

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