Hi, is there a way to auto-discover ClassMap classes in all (or in a subset of) assemblies that are under a given folder? I'm in an asp.net project with various assemblies coming from 3rd parties and containing ClassMap classes.
With structuremap I can write something like: ObjectFactory.Initialize(x => { x.Scan(s => { s.AssembliesFromApplicationBaseDirectory(assembly => assembly.GetName().Name.ToLower().Contains(".web")); s.LookForRegistries(); }); }); For NH I was looking for something like: var cfg = Fluently.Configure() .Mappings(m => m.FluentMappings.AddFromAssembliesFromApplicationBaseDirectory( assembly => assembly.GetName().Name.ToLower().Contains(".web"))); Thx -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@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.