Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Date comparison using dynamic linq

$
0
0

I have a generic method which takes the query (where clause) as string e.g. 

user.AsQueryable().Where( " UserName == \"xx\" AND Age = 12  "  );

When i add datetime value to it the method fails. It seems like the dynamic linq does not understand the datetime value ?

Is there a workaround to compare datetime using dynamic linq ?

Thanks.


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>