linq - DynamicQueryable .Where for exactly a Date (only, no time) -
i can find >= <= etc. not equal date using system.linq.dynamic dynamicqueryable where.
does have example? searched whirled wild web , found nothing yet.
example:
select * orders convert(date, created) = '2016-07-08'
appears slight modification of answer question: dynamic linq datetime comparison string building - linq entities.
if want orders specific date (no time involved):
dbcontext.orders.where("( created >= datetime(2016, 07, 08) , created < datetime(2016, 07, 09) )")
and per article above, if have other columns in clause, you'll have build yourself.
Comments
Post a Comment