79199536

Date: 2024-11-18 10:26:23
Score: 0.5
Natty:
Report link

Remove .Date from DateTime.Now.Date and try this, it should work.

var todayChanges = kbEntities.Changelogs.Where(c => EntityFunctions.TruncateTime(c.creationdate) == EntityFunctions.TruncateTime(DateTime.Now) && (c.name == ChangelogBL.ChangeLogName.ChangedKB.ToString() || c.name == ChangelogBL.ChangeLogName.Imported.ToString())).ToList();

Reasons:
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Low reputation (1):
Posted by: Irfan Afzal