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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…