Just starting out with Fluent so any help with this would be appreciated. Domain Entities: > Service {Abstract} > Storage : Service > ServiceDescription {Abstract} > UntimedServiceDescription : ServiceDescription Service aggregates ServiceDescription.
DB Tables: > Service [FK ServiceDecriptionID int] > ServiceDescription [FK ServiceTypeID int] > ServiceType [IsTimed] [bit] I am having difficulty finding the correct subclass mapping code. >From the above schema you will see that I need to DiscriminateSubClassesOnColumn("ServiceTypeID") in order to create the Storage subclass. I also need to DiscriminateSubClassesOnColumn ("IsTimed") in order to take into account that ServiceDescription can be of type UntimedServiceDescription or TimedServiceDescription. I suppose the entire question can be boiled down to how can you use DiscriminateSubClassesOnColumn() for tables and columns that are outside of the current ClassMap<Service>? Thanks Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---