Custom NHibernate function for SQL Server 2008