My where statement fails obviously, but all I can find are samples on how to convert it outside of a LinQ query. The closest I can come is:
&& rdoNoPhone.Checked ? d.PHONE!= null : true
But, I am not quite sure how that works in my case. I understand the my SQL field called Active allows 3 values, trues, false and null and I am guessing that my answer is all in that little question mark.
LinQtoSQLDataContext db = new LinQtoSQLDataContext();
var query = from a in db.Admins
where a.Active = true
orderby a.Name
select new { a.Name, a.LoginName};
I should also ask how it is possible to use an SQL IN statement in a LinQ query. For example, changing the following into LinQ:
Select Field1, Field2, Level
From Table
Where Level IN (1,2,5)