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

Support DbProviderFactories.RegisterFactory #526

Closed
bgrainger opened this issue Jul 5, 2018 · 6 comments
Closed

Support DbProviderFactories.RegisterFactory #526

bgrainger opened this issue Jul 5, 2018 · 6 comments

Comments

@bgrainger
Copy link
Member

bgrainger commented Jul 5, 2018

DbProviderFactories.RegisterFactory is a new API (dotnet/corefx#20903) in netcoreapp2.1.

Consider adding a convenience MySqlClientFactory.Register() method that registers the instance with DbProviderFactories.

Add documentation that shows how to use the old app.config/web.config way (see #525) on .NET Framework, and the deferred string-based registration on .NET Core.

@bgrainger bgrainger changed the title Support DbProviderFactories.Register Support DbProviderFactories.RegisterFactory Jul 5, 2018
@bgrainger
Copy link
Member Author

bgrainger commented Aug 28, 2018

This will be in netstandard2.1: dotnet/standard#356

@layer07
Copy link

layer07 commented Mar 6, 2019

No updates on this issue yet? I am still unable to understand why it is not agnostic between .NET and .NETCore. Everyone is having to rewrite a bunch of code.

@bgrainger
Copy link
Member Author

bgrainger commented Mar 6, 2019

The API is coming in netstandard2.1, which hasn't been released yet.

Can you be more specific about what you need?

@layer07
Copy link

layer07 commented Mar 6, 2019

Hi bgrainger, thanks for answering!

Well, actually what I wanted is more broad...
DbProviderFactories.RegisterFactory works just fine on .netcore, but won't work on regular .NET (lets say 4.7.2) More an issue with MS itself.

@bgrainger
Copy link
Member Author

bgrainger commented Mar 6, 2019

Since .NET 4.8 won't support netstandard2.1 it looks unlikely that it'll be on the full .NET Framework. (Unless they choose to just implement that one method, but I'm not sure why that would be necessary when there's already the app.config way of registering additional factories.)

@bgrainger
Copy link
Member Author

bgrainger commented Mar 18, 2019

Added in 0.50.0.

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

No branches or pull requests

2 participants