I've been using the technique described in this post:
http://www.codeproject.com/KB/dotnet/OptLocking_PrefixTable.aspx
to map MS SQL2005's rowversion column with NHib1.2.1 successfully. After upgrading to NHib2.0.0Alpha1, I keep getting the following error and i'm yet to find a solution around it.
Code:
System.TypeInitializationException: The type initializer for 'Nested' threw an exception. ---> NHibernate.MappingException: Could not compile the mapping document: etf.hbm.xml ---> NHibernate.MappingException: Could not determine type for: UserTypeTimestamp, for columns: NHibernate.Mapping.Column(Rowver)
In my mapping file, this is how I was mapping the column:
Code:
<version name="Rowver" column="Rowver" type="Persistence.UserTypeTimestamp, MyDomainsAssembly" generated="always" unsaved-value="null"/>
Any help will be most welcome.
Thanks
LH