Started working with NHibernate last week, and while hooking up my POCO to
SQL Server TimeStamp field type, found a bug in the 2.0 (Beta 1) code base.
In the CustomType class constructor, the name field is getting set to the
userTypeClass.Name property (line 33).
This causes an exception to be thrown when NHibernate tries to use your
custom type since it can't get to it if not fully qualified.
The fix is simple:
change:
name = userTypeClass.Name;
to
name = userTypeClass.AssemblyQualifiedName;
Update (14-July-2008): This has been resolved in the 2.0 Beta 2
code base.
Happy Coding!
2771cdf5-aec4-44a0-bd04-cc45ab8bedfe|0|.0|27604f05-86ad-47ef-9e05-950bb762570c