NHibernate now has the BeforeBindMapping event which gives you access to the object representation of the HBM XML files at runtime. You can use this event to set all mappings to auto-import="false" like so:
var configuration = new NHibernate.Cfg.Configuration(); configuration.BeforeBindMapping += (sender, args) => args.Mapping.autoimport = false; On Saturday, January 30, 2010 12:09:14 PM UTC-6, Armin Landscheidt wrote: > > Hallo, > > I have two classes with the same name but different namespaces. If I > want two add both to the NHiberante configuration the configuration > throws an exception because of duplicated mappings. > > Is this a bug? If not I think this would be a nice feature. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/derZBQ5c-aEJ. 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/nhusers?hl=en.
