‘Date' is not supported in LINQ to Entitiies. Only initializers, entity members, and entity navigation properties are supported

Posted by Programmer's Goodies on October 4, 2011

I am trying to execute the following code and am receiving an error public List<Log> GetLoggingData(DateTime LogDate, string title) { var context = new LoggingEntities(); var query = from t in context.Logs where t.Title == title && t.Timestamp == LogDate select t; return query.ToList(); } The error

... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.