Hi Fabio,

I understand what Jason is saying and will take this on board.
So say now that the Currency dosent have ID. I now have a "value type"
that itself contains a "value type".

In my situation, we need everything to do with the currency other than
just the name e.g. exponent,isoalphacode,isonumericcode etc
I want to instantiate my Money "value type" (which itself contains a
Currency "value type") through the constructor (with arguments)

In http://bit.ly/b8yH3b and http://bit.ly/c6g3qm , the object is
simpler i.e. it contains string and decimal only. It does not contain
a "value type" as a property like in my situation.
Also in my situation, the inner value type (i.e. the Currency "value
type") has data which resides in a different database table .i.e.

We have an amount field and a currency identifier in one table:
- SaleCurrencyIsoAlphaCode
- SaleCurrencyAmount

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

I want to instantiate a Money object via the ctor where:
 - Amount = SaleCurrencyAmount in primary table
 - Currency = Currency row of data in currency table where
IsoAlphaCode = primary tables SaleCurrencyIsoAlphaCode

Any help appreciated...




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