Probably, what Jason want say to you is that your Currency shouldn't have "ID". You can map it as component or using a IUserType as this one http://bit.ly/b8yH3b where the class in your domain is this other http://bit.ly/c6g3qm
2010/1/29 bstack <[email protected]> > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- 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.
