You need to use IUserType On Tue, Sep 30, 2008 at 9:13 PM, Tim Barcz <[EMAIL PROTECTED]> wrote:
> > Am getting an InvalidCastException when trying to load data from > database. > > We have a class "Money" which is used for obvious purposes. In the > database it is stored as a decimal. To handle the conversions in code > we simply use an implicit operator, however NH is having trouble > creating a Money object from a database column. > > Advice? Suggestions? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
