Custom NHibernate functions for SQL Server 2008