File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33
44using NHibernate . Engine ;
5+ using NHibernate . Intercept ;
56using NHibernate . Metadata ;
7+ using NHibernate . Properties ;
68using NHibernate . Type ;
79using NHibernate . Util ;
810
@@ -41,7 +43,15 @@ public string ToString(object entity, EntityMode entityMode)
4143
4244 for ( int i = 0 ; i < types . Length ; i ++ )
4345 {
44- result [ names [ i ] ] = types [ i ] . ToLoggableString ( values [ i ] , _factory ) ;
46+ var value = values [ i ] ;
47+ if ( Equals ( LazyPropertyInitializer . UnfetchedProperty , value ) || Equals ( BackrefPropertyAccessor . Unknown , value ) )
48+ {
49+ result [ names [ i ] ] = value . ToString ( ) ;
50+ }
51+ else
52+ {
53+ result [ names [ i ] ] = types [ i ] . ToLoggableString ( value , _factory ) ;
54+ }
4555 }
4656
4757 return cm . EntityName + CollectionPrinter . ToString ( result ) ;
You can’t perform that action at this time.
0 commit comments