I am having the problem that EntityFramework cannot convert DateTime.Date to SQL. I followed what other answers say about this problem (specific error: The specified type member 'Date' is not supported in LINQ to Entities.) but still the problem is happening. What am I missing?
var todayChanges = kbEntities.Changelogs.Where(c =>
EntityFunctions.TruncateTime(c.creationdate) == DateTime.Now.Date &&
(c.name == ChangelogBL.ChangeLogName.ChangedKB.ToString() ||
c.name == ChangelogBL.ChangeLogName.Imported.ToString())).ToList();