-
Notifications
You must be signed in to change notification settings - Fork 547
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
Port FunctionalTests.Transitional to .NET Core 3 #849
Conversation
@@ -31,6 +32,11 @@ private static object GetService(Type type, object key, Func<ArgumentException, | |||
} | |||
catch (ArgumentException e) | |||
{ | |||
if (string.Equals(name, "System.Data.SqlClient", StringComparison.OrdinalIgnoreCase)) | |||
{ | |||
return SqlClientFactory.Instance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajcvickers @divega If we don't find a factory for SqlClient, we'll return this hard-coded one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine. It should fix the usability issues, but I am not sure about the full implications. Maybe check it in but then talk about it a bit in the design meeting? It also has some implications for #823 (e.g. using Microsoft.Data.SqlClient).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that this is fine but we need to talk about #823. I have some ideas.
@@ -29,6 +30,11 @@ public static string GetProviderInvariantName(this DbProviderFactory factory) | |||
|
|||
if (row == null) | |||
{ | |||
if (factory is SqlClientFactory) | |||
{ | |||
return "System.Data.SqlClient"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto for mapping the factory to its invariant name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐑 🇮🇹
Part of #271