Linq date and datetime comparer -



Linq date and datetime comparer -

i need query of day, problem i'm getting error when seek compare value comes db (which datetime), against datetime.today.date value.

what i'm trying accomplish registers of day.

list<client> _cliente = c in db.cliente bring together v in db.vendedor on c.idvendedor equals v.idvendedor v.fecha.date.equals(datetime.today.date)

this i'm getting: 'the specified type fellow member 'date' not supported in linq entities. initializers, entity members, , entity navigation properties supported.'

maybe can this:

var today = datetime.today; var tomorrow = today.adddays(1); list<client> _cliente = c in db.cliente bring together v in db.vendedor on c.idvendedor equals v.idvendedor v.fecha >= today && v.fecha < tomorrow

linq datetime date linq-to-entities

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -