@@ -41,10 +41,10 @@ protected ReflectionBasedDriver(string driverAssemblyName, string connectionType
41
41
protected ReflectionBasedDriver ( string providerInvariantName , string driverAssemblyName , string connectionTypeName , string commandTypeName )
42
42
{
43
43
// Try to get the types from an already loaded assembly
44
- var connectionType = ReflectHelper . TypeFromAssembly ( connectionTypeName , driverAssemblyName , false ) ;
45
- var commandType = ReflectHelper . TypeFromAssembly ( commandTypeName , driverAssemblyName , false ) ;
44
+ TypeOfConnection = ReflectHelper . TypeFromAssembly ( connectionTypeName , driverAssemblyName , false ) ;
45
+ TypeOfCommand = ReflectHelper . TypeFromAssembly ( commandTypeName , driverAssemblyName , false ) ;
46
46
47
- if ( connectionType == null || commandType == null )
47
+ if ( TypeOfConnection == null || TypeOfCommand == null )
48
48
{
49
49
#if NETFX || NETSTANDARD2_1_OR_GREATER
50
50
if ( string . IsNullOrEmpty ( providerInvariantName ) )
@@ -59,8 +59,8 @@ protected ReflectionBasedDriver(string providerInvariantName, string driverAssem
59
59
}
60
60
else
61
61
{
62
- connectionCommandProvider = new ReflectionDriveConnectionCommandProvider ( connectionType , commandType ) ;
63
- DriverVersion = connectionType . Assembly . GetName ( ) . Version ;
62
+ connectionCommandProvider = new ReflectionDriveConnectionCommandProvider ( TypeOfConnection , TypeOfCommand ) ;
63
+ DriverVersion = TypeOfConnection . Assembly . GetName ( ) . Version ;
64
64
}
65
65
}
66
66
@@ -73,5 +73,8 @@ public override DbCommand CreateCommand()
73
73
{
74
74
return connectionCommandProvider . CreateCommand ( ) ;
75
75
}
76
+
77
+ protected System . Type TypeOfConnection { get ; private set ; }
78
+ protected System . Type TypeOfCommand { get ; private set ; }
76
79
}
77
80
}
0 commit comments