Is it possible to map entities from multiple assemblies in Fluent NHibernate?
I tried
AutoPersistenceModel
.MapEntitiesFromAssemblyOf<Class1>()
.AddEntityAssembly(assembly)
But it only loads entities from ‘assembly’ and not from parent assembly of Class1.
EDIT.
I figured it out. I had to update Fluent NHibernate to version 1.0, where you can do it like this:
AutoMap
.AssemblyOf<Class1>()
.AddEntityAssembly(typeof(UserEntity).Assembly)
I figured it out. I had to update Fluent NHibernate to version 1.0, where you can do it like this: