Skip to content

[WIP] - NH-2088 - Preliminary work required to generate async code #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented May 4, 2017

It does not compile because the code expects some methods to be already generated.

@@ -42,7 +43,7 @@ public virtual void OnLock(LockEvent @event)
{
IEntityPersister persister = source.GetEntityPersister(@event.EntityName, entity);
object id = persister.GetIdentifier(entity);
if (!ForeignKeys.IsNotTransient(@event.EntityName, entity, false, source))
if (ForeignKeys.IsTransientFast(@event.EntityName, entity, source).GetValueOrDefault())
Copy link
Member Author

@hazzik hazzik May 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsNotTransient does additional check on IsProxy and IsEntryFor. Both of these checks are performed above at lines L31 and L41-L42. So we can safely replace !IsNotTransient with IsTransient

@hazzik hazzik modified the milestone: 5.0 Aug 3, 2017
@hazzik
Copy link
Member Author

hazzik commented Aug 30, 2017

Replaced by #677

@hazzik hazzik closed this Aug 30, 2017
@hazzik hazzik deleted the NH-2088 branch August 30, 2017 23:18
@hazzik hazzik modified the milestone: 5.0 Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants