I agree that Currency should be a value type, but even so, I still
would have more or less the same problem to solve.

We have an amount field and a currency Id field in one table:
 - SaleCurrencyId
 - SaleCurrencyAmount

We have Currency data in a separate Currency table:
 - IsoAlphaCode
-  IsoNumericCode
- Name
- Exponent
etc...

I want to be able to map the Money value type (mentioned in my
original post) using the constructor with
arguments. Can this be done using ICompositeUserType or is there some
other way - i.e. write your own mapper?

Note: I dont want to really change the way value type properties are
defined (i.e. public readonly string IsoAlphaCode; ) as this would be
too much of a change - its a large codebase!


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