Skip to content

Commit 83667ab

Browse files
committed
fixup! Port FunctionalTests.Transitional to .NET Core 3
Don't match derived factories
1 parent d86bf81 commit 83667ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EntityFramework/Utilities/DbProviderFactoryExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static string GetProviderInvariantName(this DbProviderFactory factory)
3030

3131
if (row == null)
3232
{
33-
if (factory is SqlClientFactory)
33+
if (factory.GetType() == typeof(SqlClientFactory))
3434
{
3535
return "System.Data.SqlClient";
3636
}

0 commit comments

Comments
 (0)