title: Table-value functions and NHibernate
body: <p>I would like to create some table-value functions in SQL Server and use them from NHibernate 3 (I'm using Fluent NHibernate). What is the best way to do it? 
  In most cases returned data will contain reference to another table and no column which can by used as primary key</p>