| I'm wondering whether there's a way to obtain the details of the database fields that are mapped to the properties of an NHibernate entity. 
 For example, I want to find out the length of a varchar field in the database that maps to a 'name' field at runtime so that the UI of the application can dynamically determine the length of a text field to display, thereby preventing the user from entering a value that will cause a runtime exception when trying to persist the value.
 
 I know that there are methods on the SessionFactory which allow you to obtain metadata on the registered classes, but so far I haven't been able to find the information I'm looking for.
 
 Has anyone out here worked out how to do this?
 
 Cheers,
 
 Symon.
 
 
 |