Skip to content

Commit 192f301

Browse files
committed
Add support for fetching an individual lazy property with hql and linq provider
1 parent fdac0d0 commit 192f301

File tree

64 files changed

+2180
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2180
-81
lines changed

src/NHibernate.DomainModel/Async/CustomPersister.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public async Task<object> LoadAsync(object id, object optionalObject, LockMode l
8585
if (obj != null)
8686
{
8787
clone = (Custom)obj.Clone();
88-
TwoPhaseLoad.AddUninitializedEntity(session.GenerateEntityKey(id, this), clone, this, LockMode.None, false,
88+
TwoPhaseLoad.AddUninitializedEntity(session.GenerateEntityKey(id, this), clone, this, LockMode.None, null, false,
8989
session);
90-
TwoPhaseLoad.PostHydrate(this, id, new String[] {obj.Name}, null, clone, LockMode.None, false, session);
90+
TwoPhaseLoad.PostHydrate(this, id, new String[] {obj.Name}, null, clone, LockMode.None, null, false, session);
9191
await (TwoPhaseLoad.InitializeEntityAsync(clone, false, session, new PreLoadEvent((IEventSource) session),
9292
new PostLoadEvent((IEventSource) session), cancellationToken));
9393
}

src/NHibernate.DomainModel/CustomPersister.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ public object Load(object id, object optionalObject, LockMode lockMode, ISession
310310
if (obj != null)
311311
{
312312
clone = (Custom)obj.Clone();
313-
TwoPhaseLoad.AddUninitializedEntity(session.GenerateEntityKey(id, this), clone, this, LockMode.None, false,
313+
TwoPhaseLoad.AddUninitializedEntity(session.GenerateEntityKey(id, this), clone, this, LockMode.None, null, false,
314314
session);
315-
TwoPhaseLoad.PostHydrate(this, id, new String[] {obj.Name}, null, clone, LockMode.None, false, session);
315+
TwoPhaseLoad.PostHydrate(this, id, new String[] {obj.Name}, null, clone, LockMode.None, null, false, session);
316316
TwoPhaseLoad.InitializeEntity(clone, false, session, new PreLoadEvent((IEventSource) session),
317317
new PostLoadEvent((IEventSource) session));
318318
}

0 commit comments

Comments
 (0)