using DTD or FluentNHibernate or VisualNHibernate or LLBLGEN or
ConfORM or AjGenesis or CodeSmith or MyGeneration

--
Fabio Maulo


El 04/12/2010, a las 21:40, Can HANHAN <[email protected]> escribió:

> Greetings,
>
> I have a Money class which is used by some entities as component. I
> can easily map on each file by one by but it hurts the maintainability
> and not DRY. Is it possible to map it in a different mapping file
> (Money.hbm.xml) and refer in other files?
>
> class Currency
>        string Symbol { get; }
>
> class Money
>        double Amount { get; }
>        Currency Currency { get; }
>
> class Product
>      int Id  { get; set; }
>      string Name  { get; set; }
>      Money Price { get; set; }
>
> class Employee
>      string Name { get; set; }
>      Money Salary { get; set; }
>
> --
> 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.
>

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

Reply via email to