Since you're using LINQ to Entities rather than LINQ to SQL, the question you're referencing doesn't apply. You can just use row.FirstActivityTime == myDate
in your filter and EF will generate the correct SQL query, incorporating an is null
check along with the equality check.
EDIT
It turns out this behavior has been changed a bit, and you need to set a flag on the context to get the old behavior back. (source: http://entityframework.codeplex.com/workitem/178)
var objectContext = ((IObjectContextAdapter)dbContext).ObjectContext;
objectContext.ContextOptions.UseCSharpNullComparisonBehavior = true;
After doing that, the is null
checks will be included in the generated SQL.