c# - How do I create a linq query that gets everything but a specific value -
I have a linux query that's selected in the DB.roll, where r.RoleName is not included ("Administrator" ) Choose r;
It does not include the part that has confused me. I know that I can do this. Calls but how do you do the opposite?
Thank you!
Update: I found the deprecated method here and how I used it:
var role = (Order R from R in DB. . Choose Roll Name R). (From R in DB.Roll, where r.RoleName == "Administrator" & Amp; r.RoleName == "Data Entry" select r);
try the following
var query = db Rolls. Where (x => x. rollnam.certain ("administrator")); You can simply use the operator of C #! (exclamation point). Extended LINQ syntax version
var query = db. Where in the roll! Select it.RoleName.Contains ("Administrators");
Comments
Post a Comment