Say I have a linq query select r in db.Roles where r.RoleName DOES NOT contain ("Administrator") select r;
It is the does not contain part that has me confused. I realize I can do that .Contains call but how do you do the opposite?
Thanks!
Update:
I found the Exclude method and here is how I used it:
var role = (from r in db.Roles
orderby r.RoleName
select r).Except(from r in db.Roles where r.RoleName == "Administrator" & r.RoleName == "DataEntry" select r);