I need to create a custom type for NHibernate by writing a new mapper class that implements IUserType
. While it is relatively straightforward to override most o
You may want to check out this article. It is a good example of how to implement the IUserType interface.
Have a look at how Ritesh Rao has done this in his NCommon framework:
The MoneyUserType implements a base class called CompositeUserTypeBase
There's more detail in the comments but to summarize:
It's explained in a lot more detail here