Skip to content
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

Add missing ISession.Get(entityName, id, lockMode) #2378

Merged
merged 6 commits into from
May 25, 2020

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented May 14, 2020

Fixes #2313

IStatelessSession.Get(entityName, id, lockMode) is already present

hazzik
hazzik previously approved these changes May 16, 2020
@hazzik hazzik added this to the 5.3 milestone May 16, 2020
Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
return Get(clazz.FullName, id, lockMode);
}

/// <inheritdoc />
Copy link
Member

Choose a reason for hiding this comment

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

<inheritdoc /> is not valid here because there is no parent.

Suggested change
/// <inheritdoc />
/// <inheritdoc cref="SessionExtensions.Get" />

Copy link
Member

Choose a reason for hiding this comment

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

I should probably go sleeping. It's my third attempt to put this comment. 🤦

Copy link
Member Author

Choose a reason for hiding this comment

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

is not valid here because there is no parent.

Yeah we know it's been discussed here: #2378 (comment)

As this class is not intended to be used by end user I think it's OK to have it as is. It will become valid when we merge this method to interface. With you suggestion it's still invalid as multiple Get extensions are present. And we need to add to TODO to remove cref. So maybe leave it be...

@hazzik hazzik merged commit 1d8fb9c into nhibernate:master May 25, 2020
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.

Add overloads to ISession.Get taking both an entityName and a lockMode
3 participants