Disclaimer: I don't have a ton of practical Automapping experience, as I have no need to use it in my day to day activities. You're asking two questions here, and I'm not sure if they're related to the same problem. 1.) Are you having a problem with the "MergeWithAutoMapsFromAssembly" call? Could you briefly explain how you're expecting it to work in your environment? That method name might be misleading, from what I can tell during my investigations (and I could be wrong here), that call does not actually automap the assembly you're referencing. It simply adds that assemblies ClassMap<T> types to the current AutoPersistenceModel. 2.) You state your entities are split among several classes. In what way? Could you provide a simplified class data definition for some of the classes you're attempting to search on and an example of the search you're attempting to perform?
On Mon, Apr 13, 2009 at 10:19 PM, Swampy <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
