We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce03a6e commit 7d2fc4bCopy full SHA for 7d2fc4b
src/NHibernate/Impl/StatelessSessionImpl.cs
@@ -230,17 +230,8 @@ public override object GetContextEntityIdentifier(object obj)
230
{
231
using (BeginProcess())
232
233
- if (obj.IsProxy())
234
- {
235
- INHibernateProxy proxy = obj as INHibernateProxy;
236
-
237
- return proxy.HibernateLazyInitializer.Identifier;
238
- }
239
- else
240
241
- EntityEntry entry = temporaryPersistenceContext.GetEntry(obj);
242
- return (entry != null) ? entry.Id : null;
243
+ EntityEntry entry = temporaryPersistenceContext.GetEntry(obj);
+ return (entry != null) ? entry.Id : null;
244
}
245
246
0 commit comments