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

Port FunctionalTests.Transitional to .NET Core 3 #849

Merged
merged 1 commit into from
May 18, 2019

Conversation

bricelam
Copy link
Contributor

Part of #271

@@ -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;
Copy link
Contributor Author

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.

Copy link
Contributor

@divega divega May 17, 2019

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).

Copy link
Member

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";
Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Member

@ajcvickers ajcvickers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑 🇮🇹

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

Successfully merging this pull request may close these issues.

3 participants