Hi
Thanks for your answer! I tried to implement a library which works similar to the Nullables.NHibernate, by combining System.Data.SqlTypes with the interface IUserType but failed :(
So I decided to use Nullables.dll and Nullables.NHibernate.dll. After lots of tweaking, adapting, etc I finally got it to compile and (partially) run. Unfortunatly another error came up which I have no clue how to solve. in the following fuction:
Code:
Private Function getSessionFactory() As ISessionFactory
If _sessionFactory Is Nothing Then
_sessionFactory = getConfiguration().BuildSessionFactory
End If
Return _sessionFactory
End Function
it works fine until the getConfiguration() part (where I have all the _configuration.AddClass(GetType(MyDTO)) and the connection properties) but it fails when getting to BuildSessionFactory. The error message is:
Code:
PonteVecchio.DTL.BothFundDAOTest.displayApprovedFunds : NHibernate.MappingException : Bad identifier type: NullableInt64Type
(sometimes it is NullableInt32Type instead... so not consistant either :?: )
and the last log4net message is:
Code:
2005-05-25 11:01:27,060 [2972] DEBUG NHibernate.Impl.SessionFactoryImpl [] <> - instantiating session factory with properties: hibernate.dialect=NHibernate.Dialect.MsSql2000Dialect;hibernate.show_sql=true;hibernate.connection.connection_string=***;hibernate.connection.provider=NHibernate.Connection.DriverConnectionProvider;hibernate.connection.driver_class=NHibernate.Driver.SqlClientDriver;
any ideas?
possible issues:
- that error message is thrown in AbstractEntityPersister
- I "extended" Nullables and Nullables.NHibernate by a NullableStringType. How come this doesn't exist? How do others map varchar fields?