Hi
At the moment to my knowledge, there is no easy way to find out whats
already been mapped from nhibernate itself so we can't find that out.

If anyone knows a way, it would be a better way to check what's being mapped
than my current implementation.

Andy

On Tue, Jan 13, 2009 at 4:06 PM, James Gregory <jagregory....@gmail.com>wrote:

> Sorry, I meant to say that in my previous message. The auto mapping won't
> exclude things that have already been mapped, it isn't that  clever
> currently. So you'll need to use the Where method to do the filtering of
> already mapped stuff.
>
>
> On Tue, Jan 13, 2009 at 3:58 PM, Brendan Erwin <brendanjer...@gmail.com>wrote:
>
>> 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.
>>
>>
>>    1. var autoMappings = AutoPersistenceModel
>>    2.   .MapEntitiesFromAssemblyOf<Product>()
>>    3.   .Where(t => t.Namespace == "My.NewEntities")
>>    4.   .WithConvention(/* some conventions */)
>>    5.
>>
>>
>>    1. var autoMappings = AutoPersistenceModel
>>    2.   .MapEntitiesFromAssemblyOf<Product>()
>>    3.   .Where(t => t.Namespace == "My.OldEntities")
>>    4.   .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.)
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>
> >
>


-- 
=================
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net

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