In Table, DueDate data type is varchar. Now I want to check the due date with today\'s date
var query = (from o in db.Order_Reports
where Convert.
yes this a problem in Linq-to-Entities
this case happend when regular DateTime except that it is nullable
Linq can understand Convert.ToDateTime
or GetValueOrDefault()
But Entitie Not sported that
you cane use Date.Value
this Code :
var x = myContext.MyTable.Where(tbl => tbl .MyDateColumn.Value == DateTime.Now)