I have a PostgreSQL database that interacts with the program through the Entity Framework Code First.
The database contains a "users" table, which has a column type of "visit" DateTime.
The application is described as:
public class Users { ... [Required] [Column("visit")] public DateTime VisitDate ... }
I am trying to run this query;
var rslt = context.Visitors.Where(v => v.VisitDate.Date == DateTime.Now.Date).ToList()
But getting exception: NotSupportedException
What's wrong?
pma11
source share