I have seen several posts asking this question, but, I am not sure
that I have seen an answer.

My Entities are split among several classes, but, I need to be able to
query on them. Is there a way to use AutoPersistenceModel to include
these files?

For example, if I have Product and Category in separate assemblies.I
thought I might be able to use:
           var autoMappings =
           AutoPersistenceModel
          .MapEntitiesFromAssemblyOf<Category>()
          .MergeWithAutoMapsFromAssemblyOf<Product>()
          .WithSetup(s => s.IsBaseType = type => type == typeof
(BaseEntity))
          .ConventionDiscovery.AddFromAssemblyOf<PluralizeTableNameConvention>
()

I don't understand the purpose of "MergeWithAutoMapsFromAssembly"

Please, any help, guidance or just a point in the right direction
would be helpful!!

Chuck

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to