A component works for the classes, but the properties still have to be
mapped in every xml.
Diego
On Fri, Sep 3, 2010 at 17:46, José F. Romaniello <[email protected]>wrote:
> why not a component?
>
> 2010/9/3 Diego Mijelshon <[email protected]>
>
>> From
>> http://nhforge.org/doc/nh/en/index.html#inheritance-tableperconcreate-polymorphism
>> :
>>
>> If you want to avoid duplication, consider using XML entities (e.g. [
>> <!ENTITY allproperties SYSTEM "allproperties.xml"> ] in the DOCTYPEdeclartion
>> and &allproperties; in the mapping).
>>
>>
>> But that's ugly, IMO. To avoid duplication, it's better to use a
>> code-based mapping solution, like ConfORM or FluentNH
>>
>> Diego
>>
>>
>>
>> On Fri, Sep 3, 2010 at 03:57, harshil <[email protected]> wrote:
>>
>>> I have more than 400 mapping files,
>>>
>>> here near 150 mapping files have four common properties,
>>> (like 'Created User', 'Created Date','Modified User' and 'Modified
>>> Date'.)
>>>
>>> I want to avoid duplication of those mapping properties.
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "nhusers" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en.