I am new to NHibernate and Fluent NHibernate. I am wondering how to use Fluent NHibernate correctly with a table-to-subclass matching strategy.
This is an example of what I need. More specifically, although I need a way to split subclass mappings into separate files.
Also, when adding records, I need NHibernate to first insert the parent and then into the child. The following is a simplified prototype of my database. Characters, images, and designs must be inherited from Entities. Entities are responsible for creating the primary key. PersonnelId, ImageId, and ProjectId have foreign keys that reference EntityId.
Hope this makes sense, thanks in advance.
alt text http://img695.imageshack.us/img695/6112/databasediagram.jpg
alt text http://img693.yfrog.com/img693/4980/databasecolumns.jpg
Jesse source
share