Hi ,
I have a datetime field that i want to compare only the date part of it with another date in a LINQ query , but an error is thrown , here is a code snippet :
var currentDate = DateTime.UtcNow.Date;
var contacts = (from c in service.ContactSet
&& c.new_testDate.Value.Date.Equals(currentDate)
select c
).ToList();
the error :
"Invalid 'where' condition. An entity member is invoking an invalid property or method."
is it a LINQ limitation ? and how can we solve it ? Thanks.