I need to compare just the date only in a Linq query that involves a datetime field. However, the syntax below results in the following error message
datetime
<
Take off the .Date If the field is a DateTime it can be compared with ==
var duplicate = from a in _db.AgentProductTraining where a.CourseCode == course.CourseCode && a.DateTaken == course.DateTaken && a.SymNumber == symNumber select a;