Hi all,
I have a query in the form:
var fruits = (from p in fruitDB
where (p.Fruit.FruitID == fruitID && p.Color.ColorID != null )
select p.Color).Distinct();
VS 2010 gives me a blue underline and informs me "Expression is always true". Now granted I agree if the data in the database wasn't stuffed up, but in my case, I will get a null if I do not include the added statement for != null
So is this a bug or based on rules set in my database schema? (even though the underlying data contradicts it)