Skip to content

Commit 3d90a64

Browse files
committed
Remove breaking changes
1 parent c353f3c commit 3d90a64

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/NHibernate/Engine/EntityKey.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
namespace NHibernate.Engine
88
{
9+
//TODO 6.0: Remove IDeserializationCallback interface
910
/// <summary>
1011
/// A globally unique identifier of an instance, consisting of the user-visible identifier
1112
/// and the identifier space (eg. tablename)
1213
/// </summary>
1314
[Serializable]
14-
public sealed class EntityKey : ISerializable, IEquatable<EntityKey>
15+
public sealed class EntityKey : IDeserializationCallback, ISerializable, IEquatable<EntityKey>
1516
{
1617
private readonly object identifier;
1718
private readonly IEntityPersister _persister;
@@ -85,11 +86,15 @@ public override string ToString()
8586
}
8687

8788
[SecurityCritical]
88-
public void GetObjectData(SerializationInfo info, StreamingContext context)
89+
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
8990
{
9091
info.AddValue(nameof(Identifier), identifier);
9192
info.AddValue(nameof(_persister.Factory), _persister.Factory);
9293
info.AddValue(nameof(EntityName), EntityName);
9394
}
95+
96+
[Obsolete("IDeserializationCallback interface has no usages and will be removed in a future version")]
97+
public void OnDeserialization(object sender)
98+
{}
9499
}
95100
}

0 commit comments

Comments
 (0)