nhibernate - Compare term to current date in HQL (with .Net) -


I want to compare a column value to the current date, using HQL.

I tried

  IQuery someQuery = session.CreateQuery (String.Format (@ "Select from Inventory Printstitat where s.ValidFrom & lt; current_date ( ) ")); 

of NHibernate It's been a while while using, but I think that there is an HQL function called "HTC" that does different bid implementations in "NHibernate map" for its own SQL dialect. Variant.

If you do not, you can always change it in the parameter.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -