Custom Object Mapping with NHibernate
Posted: Wed Feb 18, 2015 3:56 pm
I'm looking for a clean way to use NHibernate to map a custom table to a custom object without using the HBM XML files. I don't want to use the HBM XML files because I'm using a WSP project and it just seems a lot messier than it needs to be. NHibernate has extensions (Fluent and NHibernate.Mapping.Attributes) to make it easier but I haven't found an easy way to use those.
I've read http://wiki.ablecommerce.com/index.php/ ... _-_AC_Gold but there's nothing clean or good about having to create 9 separate files to incorporate a simple table.
I've read lots of helpful posts from Judy (jmestep) on using the NHibernateHelper but none of them address mapping to an object without HBM XML files.
Has anyone found a solution for this? We really could use better guidance from the Able folks on simple and clean options.
I've read http://wiki.ablecommerce.com/index.php/ ... _-_AC_Gold but there's nothing clean or good about having to create 9 separate files to incorporate a simple table.
I've read lots of helpful posts from Judy (jmestep) on using the NHibernateHelper but none of them address mapping to an object without HBM XML files.
Has anyone found a solution for this? We really could use better guidance from the Able folks on simple and clean options.