Clever-1945
12/1/2017 - 5:13 AM

SqlFunction #NHibernate

SqlFunction #NHibernate

var prop = Projections.Property(propExpression);
var criteria = Restrictions.Or(Restrictions.IsNull(prop), Restrictions.Eq(Projections.SqlFunction("trim", NHibernateUtil.String, prop), ""));