protected override void RegisterFunctions() { base.RegisterFunctions(); RegisterFunction("contains", new StandardSQLFunction("contains", null)); RegisterFunction(RandomOrder, new StandardSQLFunction("NEWID", NHibernateUtil.Guid)); //RegisterFunction("NEWID()", new StandardSQLFunction("NEWID()", NHibernateUtil.Guid)); CustomProjections.Register(); }