I have a table where some items may be null. I can query then easily by using a query like so:
db.SomeTable.Where(s => s.SomeCol == null)
Simple enough, but this does not work (No results. I suspect it is searching for an empty string instead; "") when using a variable that happens to be null, like so:
string variable = null;
db.SomeTable.Where(s => s.SomeCol == variable)
Do I have to do something special to get this to work?
SomeCol?