I want to be able to call a custom function called \"recent_date\" as part of my HQL. Like this: [Date] >= recent_date()
I created a new dialect, inh
I thought you had to prefix your function with "dbo." whenever you used it. My custom dialect has this:
RegisterFunction("dbo.isbounded", new SQLFunctionTemplate(NHibernateUtil.Double, "dbo.IsBounded(?1, ?2, ?3, ?4, ?5, ?6)"));
It's then called using
Expression.Sql("dbo.IsBounded(...)")
I think, Where
is a SQL statement, not a HQL statement. So it doesn't know the function. It only works for HQL, in queries or filters.