I just noticed someone using the PrimitiveType class. It seems like an alternative to IUserType, but I can’t find any documentation for it.
What is it for?
I just noticed someone using the PrimitiveType class. It seems like an alternative to
Share
PrimitiveTypeis a base class of primitive type implementations in NHibernate. It is not aIUserType, it is an IType. To me it seems not to be intended to be inherited outside of NHibernate, at least not for regular stuff. On the other side, it seems to be more powerful and it is also a public class. However, if you can solve your problem with a regularIUserType, I would recommend to use that.All types in NH implement
IType. ThePrimitiveTypeis on the same level as theCustomType, which wraps anIUserType. So theIUserTypeis not anITypedirectly.