Skip to content

Commit 14c8140

Browse files
fixup! Resolve collection owner correctly in case of property-ref
Do a forgotten renaming after a copy-paste
1 parent b76108d commit 14c8140

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/NHibernate/Async/Persister/Entity/IUniqueKeyLoadable.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public static async Task CacheByUniqueKeysAsync(
4040

4141
// Use reflection for supporting custom persisters.
4242
var ukLoadableType = ukLoadable.GetType();
43-
var registerMethod = ukLoadableType.GetMethod(
43+
var cacheByUniqueKeysMethod = ukLoadableType.GetMethod(
4444
nameof(AbstractEntityPersister.CacheByUniqueKeysAsync),
4545
new[] { typeof(object), typeof(ISessionImplementor) });
46-
if (registerMethod != null)
46+
if (cacheByUniqueKeysMethod != null)
4747
{
48-
registerMethod.Invoke(ukLoadable, new[] { entity, session });
48+
cacheByUniqueKeysMethod.Invoke(ukLoadable, new[] { entity, session });
4949
return;
5050
}
5151

src/NHibernate/Persister/Entity/IUniqueKeyLoadable.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public static void CacheByUniqueKeys(
3636

3737
// Use reflection for supporting custom persisters.
3838
var ukLoadableType = ukLoadable.GetType();
39-
var registerMethod = ukLoadableType.GetMethod(
39+
var cacheByUniqueKeysMethod = ukLoadableType.GetMethod(
4040
nameof(AbstractEntityPersister.CacheByUniqueKeys),
4141
new[] { typeof(object), typeof(ISessionImplementor) });
42-
if (registerMethod != null)
42+
if (cacheByUniqueKeysMethod != null)
4343
{
44-
registerMethod.Invoke(ukLoadable, new[] { entity, session });
44+
cacheByUniqueKeysMethod.Invoke(ukLoadable, new[] { entity, session });
4545
return;
4646
}
4747

0 commit comments

Comments
 (0)