Skip to content

Fix lazy set when adding a transient element with overridden Equals method #2481

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

Merged
merged 5 commits into from
Aug 19, 2020

Conversation

maca88
Copy link
Contributor

@maca88 maca88 commented Aug 13, 2020

Fix for a regression made by #2010, which added an optimization for ISet<> and ICollection<> Add method for not initializing the collection in case the added element is transient. The fix adds an additional check, which checks whether the Equals method is overridden and in case it is, the collection will be intialized as it was prior #2010.

Fixes #2476

@fredericDelaporte fredericDelaporte added this to the 5.3.3 milestone Aug 16, 2020
@fredericDelaporte fredericDelaporte merged commit 3f8afe3 into nhibernate:5.3.x Aug 19, 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.

2 participants