Use SQL query to populate property in nHibernate mapping file
- by brainimus
I have an object which contains a property that is the result of an SQL statement. How do I add the SQL statement to my nHibernate mapping file?
Example Object:
public class Library{
public int BookCount
{
get;
set;
}
}
Example Mapping File:
<hibernate-mapping>
<class name="Library"…