-
Notifications
You must be signed in to change notification settings - Fork 39
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
Upgraded to NH5. Support for async. #31
base: master
Are you sure you want to change the base?
Conversation
Hi @gliljas, Thanks for your work on this! I'm interested in merging this but there a few issues that would need to be addressed before I can do so:
|
Thanks for replying. I will give it a bit of cleanup and an attempt to support NH<5 cleanly. |
How would you like to handle the backwards compatibility? A separate Async package with >=5 dependency and changing the dependency of the standard package to <5? |
Can we not do it in one package using binary compatibility? |
I don't see how, or am I missing something? Or are you thinking of having a package version 5 (or 4) with a NH5 dependency, while still being able to maintain v3 packages for NH4? |
The "standard" caches were just upgraded https://www.nuget.org/packages/NHibernate.Caches.SysCache/5.1.0 ..and they've chosen to just up the dependency. I suggest the same for this library. |
NH 5 isn't binary compatible with previous versions. |
People needing to use older NHibernate should just use the previous cache package version. NuGet allows this. The drawback is for supplying new features to them along to the latest version: it will require to publish a new version of the old package along with a new version of the up-to-date package. As long as the up-to-date package has a major version greater than the packages targeting previous NHibernate, it is doable without confusion by just upgrading the minor part of the version of both. |
The upgraded nuspec has not been tested.
The sample web project didn't start here, but it's a bit dated.