It would be easier to follow what you are suggesting if you could provide some code.
On Mon, Jul 27, 2009 at 9:07 AM, Mira.D <[email protected]> wrote: > > I'm really new to Fluent NHibernate, but I'm really enjoying this. > It took care of all my major problems with dynamic mappings. > I'm not sure if here is the right place to post my issue but, let's > go: > > I have some "core components" that take care of entities auditing, > so I have an AudityRecord class and AudityRecord<T> subclass that > identifies each auditable entity recordinfo. In my program loading I > had to add the AudityRecordMap and put some parameters in the > constructor (an array with all auditable entities types). I've seen > that calling FluentMappings.Add I have to pass the class type so it > will sent to the PersistentModel, witch will instantiate the object, > etc... The PersistentModel already has exposed a method to receive the > IMappingProvider object so I just exposed a new method in the > FluentMappingsContainer to receive the already instantiated > AudityRecordMap with the needed array of types to map all of it's > dynamic subclasses. > > That would be nice if it becomes part of the project so I won't need > to be "fixing" it every new version downloaded. > > Best regards, > DM > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
