Hello!
NHibernate gives me a strange cast exception. The message of the exception is: "Unable to cast object of type 'Iesi.Collections.HashedSet' to type 'System.Collections.IList'.". The stack trace is:
at NHibernate.Type.PersistentCollectionType.Copy(Object original, Object target, ISessionImplementor session, Object owner, IDictionary copiedAlready)
at NHibernate.Type.TypeFactory.Copy(Object[] original, Object[] target, IType[] types, ISessionImplementor session, Object owner, IDictionary copiedAlready)
at NHibernate.Impl.SessionImpl.DoCopy(Object obj, Object id, IDictionary copiedAlready)
at NHibernate.Impl.SessionImpl.SaveOrUpdateCopy(Object obj)
at "Here goes my own function invocation".
Do some of you know how to overcome this difficulty?
Best regards,
Henrik Dahl
|