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

How about a .Net Core / netstandard version #32

Open
mduu opened this issue May 11, 2020 · 5 comments
Open

How about a .Net Core / netstandard version #32

mduu opened this issue May 11, 2020 · 5 comments

Comments

@mduu
Copy link

mduu commented May 11, 2020

Hi,

This library looks exactly like to one we need but we are on .Net Core / NetStandard. It seems this version is not compatible with NetStandard. Microsoft seems to have a .Net Core compatible version of EnterpriseLibrary.TransientFaultHandling.

Any plans on porting this library to .Net Core / NetStandard?

Cheers, Marc

@robdmoore
Copy link
Member

robdmoore commented May 11, 2020 via email

@JustinasS
Copy link

@mduu I have made a fork targeting netstandard.
At the moment NHibernate does not have implementation for SqlClientBatchingBatcher which is used by this driver. So used GenericBatchingBatcher which is less performant.

@robdmoore Can you explain the process of shipping it out? I could do it if I see I am capable of it.

@robdmoore
Copy link
Member

When you say "less performant" what's the implication? It's been a while since I looked at the library so can't really remember what SqlClientBatchingBatcher does or where it came from (e.g. inside of NHibernate or elsewhere).

In terms of shipping, let's start with a pull request to this project so we can all inspect the diff and decide the best way to merge it in (for instance I think this is a logical time to make a clean break and remove all of the legacy NHibernate packages we build for the project etc.). Once it's merged the CI/CD we have attached to this project makes it easy to release.

@JustinasS
Copy link

Batchers implementation comes from NHibernate. SqlClientBatchingBatcher is available only for the dotnet framework runtime. I do not know what actual performance difference is between SqlClientBatchingBatcher and GenericBatchingBatcher.
Although on NHibernate repo one of the classes used by SqlClientBatchingBatcher has comment:
https://github.com/nhibernate/nhibernate-core/blob/02fc5294bb8948e48bb05c0bed1a17cd5443818c/src/NHibernate/AdoNet/SqlClientSqlCommandSet.cs#L12-L19

I have created a draft pull request.

@dsibinski
Copy link

This feature would help a lot! Would love to use it with NHibernate in .NET 6 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants