Skip to content

Commit e203384

Browse files
fixup! Recompute hashcodes on deserialization
Re-implement Printer.ToString
1 parent c18499e commit e203384

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/NHibernate/Impl/Printer.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ internal string ToString(IEnumerable<KeyValuePair<string, TypedValue>> namedType
8787
return CollectionPrinter.ToString(result);
8888
}
8989

90+
internal string ToString(IEnumerable<KeyValuePair<string, TypedValue>> namedTypedValues)
91+
{
92+
return CollectionPrinter.ToString(
93+
namedTypedValues.Select(
94+
ntv => new KeyValuePair<string, string>(
95+
ntv.Key,
96+
ntv.Value.Type.ToLoggableString(ntv.Value.Value, _factory))));
97+
}
98+
9099
public void ToString(object[] entities)
91100
{
92101
if (!log.IsDebugEnabled() || entities.Length == 0)

0 commit comments

Comments
 (0)