Skip to content

Disable append-hashcode when library is not built for netFx #53

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

Conversation

fredericDelaporte
Copy link
Member

@fredericDelaporte fredericDelaporte commented Jul 20, 2018

Under .Net Core, hashcodes are not stable, causing distributed cache to be segregated by process.

The append-hashcode default value should be false when the library is not built for .Net Framework, instead of true.

It is kept as true for .Net Framework in order to avoid a breaking change for those relying on this setting for being able of caching data depending on a composite-id which does not override its ToString.

(Also add the possibility to set the setting per region.)

Under .Net Core, hashcodes are not stable, causing distributed cache
to be segregated by process
@fredericDelaporte fredericDelaporte added this to the 5.5 milestone Jul 20, 2018
@fredericDelaporte fredericDelaporte merged commit 70d527c into nhibernate:master Jul 24, 2018
@fredericDelaporte fredericDelaporte deleted the disableAppendHashcode branch July 24, 2018 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant