Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27221/NHibernate/Util
Modified Files:
IdentityMap.cs
Log Message:
Added more details to error message.
Index: IdentityMap.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/IdentityMap.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** IdentityMap.cs 9 Aug 2004 03:18:49 -0000 1.11
--- IdentityMap.cs 28 Aug 2004 15:51:29 -0000 1.12
***************
*** 251,255 ****
if(obj is System.ValueType)
{
! throw new ArgumentException("A ValueType can not be used with IdentityKey. " +
"The thread at google has a good description about what happens with boxing " +
"and unboxing ValueTypes and why they can not be used as an IdentityKey: " +
--- 251,259 ----
if(obj is System.ValueType)
{
! throw new ArgumentException(
! "There is a problem with your mappings. You are probably trying to map a System.ValueType to " +
! "a <class> which NHibernate does not allow or you are incorrectly using the " +
! "IDictionary that is mapped to a <set>. \n\n" +
! "A ValueType can not be used with IdentityKey. " +
"The thread at google has a good description about what happens with boxing " +
"and unboxing ValueTypes and why they can not be used as an IdentityKey: " +
|