I'm creating something in ASP.NET MVC 4 and in one of my tables there is a field of type datetime. This field is defaulted to null until it is updated. I am trying select from this table the rows that have this field as null but my LINQ query always returns nothing. This is my query.
from m in this._db.MessageReadStates
where m.UserName == name
&& m.ReadDate == null
select m
I new to C# so is there a correct way to check for null?
ReadDate?DateTimeorDateTime?