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
Post a Comment