Like this:
Code: Select all
var capa = from c in db.CapaAgendamentos where c.Publicacao <= DateTime.Now select c;
Code: Select all
SELECT * FROM SITE.TD_CAPA_AGENDAMENTO WHERE PUBLICACAO <= (CURRENT_DATE)
Any idea?
Ps. In the future I mean in the next hours, but not in the next days.
[UPDATE]
If I define a variable first, it works. Ex.:
Code: Select all
DateTime now = DateTime.Now;
var capa = from c in db.CapaAgendamentos where c.Publicacao <= now select c;