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