Thanks James, ive didn't noticed that there is a wiki for this.

James Gregory schrieb:
> Chris is correct, but you should read through the wiki as it explains it
> all. See: Auto Mapping
> <http://wiki.fluentnhibernate.org/show/AutoMapping>, Auto
> Mapping 
> Inheritance<http://wiki.fluentnhibernate.org/show/AutoMappingInheritance>for
> your particular situation, and Auto
> Mapping Altering
> Entities<http://wiki.fluentnhibernate.org/show/AutoMappingAlteringEntities>for
> your exception case.
> On Thu, Feb 5, 2009 at 9:38 PM, Chris Marisic <[email protected]> wrote:
> 
>> I believe what you are looking for is this
>>
>> .WithConvention(c=>c.IsBaseType = baseType => baseType == typeof
>> (SomeBaseObject))
>>
>> Add that to your creation of the AutoPersistenceModel at some point
>> after the .MapEntitiesFromAssemblyOf<>() statement.
>>
>> On Feb 5, 3:39 pm, Steve Wagner <[email protected]> wrote:
>>> Hi, all my Domain objects have a common generic base class which
>>> provides equality.
>>>
>>> If i use AutoPersistenceModel with them, it adds the base class for each
>>> object and then it adds the object itself as joined subclass. How can i
>>> prevent this behavior?
>>>
>>> And second, what is the best way to setup an exception? I have on object
>>> which i have to map with and assigned id generator instead of an
>> guidcomp.
>>> Greets,
>>> Steve
>>>
> 
> > 
> 

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