What about the order of things?

If something has already been mapped explicitly using fluent or XML  
will it be ignored by the automapping?



On Jan 13, 2009, at 10:10 AM, James Gregory wrote:

> It's fairly easy to mix all types of mappings. You should just  
> follow the individual examples, feeding them all into the same  
> NHibernate Configuration object.
>
> As for using multiple automappings, you should just be able to  
> repeat the entire mapping multiple times.
>
> var autoMappings = AutoPersistenceModel
>   .MapEntitiesFromAssemblyOf<Product>()
>   .Where(t => t.Namespace == "My.NewEntities")
>   .WithConvention(/* some conventions */)
>
> var autoMappings = AutoPersistenceModel
>   .MapEntitiesFromAssemblyOf<Product>()
>   .Where(t => t.Namespace == "My.OldEntities")
>   .WithConvention(/* new conventions */)
>
> Although I haven't done this personally.
>
> On Tue, Jan 13, 2009 at 3:06 PM, Brendan Erwin <brendanjer...@gmail.com 
> > wrote:
>
> I'd like to combine the AutoMapping, Fluent, and plain old XML styles
> of mapping all in the same project. I'm dealing with a legacy database
> that we are currently reworking to be a bit more manageable.
>
> My goal is that I'd like to take each of these capabilities to their
> limit and then drop down a level as needed.
>
> How would I go about loading my mappings in order to make this work?
>
> Can I call AutoMapping multiple times with different conventions? (Our
> database has multiple generations of developer "signatures" in it, so
> we have multiple convention sets.)
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to