How to filter a nullable column in linq to edm

  • Thread starter Thread starter Roy
  • Start date Start date
R

Roy

I have a linq query
Select MyObject from db.MyObjectCollection
to select records from table.

The filter (where) is based on a nullable column in the table. The column
could be a simple string value or a reference to another table. I tried

"where MyObject.MyColumn == null"
and "where MyObject.MyAnotherObject.Id == null"

Both does not work.

Anyone has the syntax for the filter with nullable values?
Thanks.
 
Back
Top