File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ public void CreateDataAdapter()
46
46
[ Fact ]
47
47
public void DbProviderFactoriesGetFactory ( )
48
48
{
49
- #if ! NET462 && ! NET472
50
- DbProviderFactories . RegisterFactory ( "MySqlConnector" , MySqlConnectorFactory . Instance ) ;
51
- #endif
52
49
#if MYSQL_DATA
53
50
var providerInvariantName = "MySql.Data.MySqlClient" ;
54
51
#else
55
52
var providerInvariantName = "MySqlConnector" ;
53
+ #endif
54
+ #if ! NET462 && ! NET472
55
+ DbProviderFactories . RegisterFactory ( providerInvariantName , MySqlConnectorFactory . Instance ) ;
56
56
#endif
57
57
var factory = DbProviderFactories . GetFactory ( providerInvariantName ) ;
58
58
Assert . NotNull ( factory ) ;
Original file line number Diff line number Diff line change 6
6
</PropertyGroup >
7
7
8
8
<PropertyGroup Condition =" '$(Configuration)' == 'MySqlData' " >
9
- <TargetFrameworks >net472 </TargetFrameworks >
9
+ <TargetFrameworks >net6.0 </TargetFrameworks >
10
10
<DefineConstants >MYSQL_DATA</DefineConstants >
11
11
</PropertyGroup >
12
12
You can’t perform that action at this time.
0 commit comments