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 2
2
using System . Collections . Generic ;
3
3
4
4
using NHibernate . Engine ;
5
+ using NHibernate . Intercept ;
5
6
using NHibernate . Metadata ;
7
+ using NHibernate . Properties ;
6
8
using NHibernate . Type ;
7
9
using NHibernate . Util ;
8
10
@@ -41,7 +43,15 @@ public string ToString(object entity, EntityMode entityMode)
41
43
42
44
for ( int i = 0 ; i < types . Length ; i ++ )
43
45
{
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
+ }
45
55
}
46
56
47
57
return cm . EntityName + CollectionPrinter . ToString ( result ) ;
You can’t perform that action at this time.
0 commit comments