File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
src/MySqlConnector/MySqlClient Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ public sealed class MySqlParameter : DbParameter
11
11
public MySqlParameter ( )
12
12
{
13
13
m_mySqlDbType = MySqlDbType . VarChar ;
14
+ SourceColumn = "" ;
15
+ #if ! NETSTANDARD1_3
16
+ SourceVersion = DataRowVersion . Current ;
17
+ #endif
14
18
}
15
19
16
20
public MySqlParameter ( string name , object objValue )
21
+ : this ( )
17
22
{
18
- m_mySqlDbType = MySqlDbType . VarChar ;
19
23
ParameterName = name ;
20
24
Value = objValue ;
21
25
}
@@ -73,24 +77,12 @@ public override string ParameterName
73
77
74
78
public override int Size { get ; set ; }
75
79
76
- public override string SourceColumn
77
- {
78
- get { throw new NotSupportedException ( ) ; }
79
- set { throw new NotSupportedException ( ) ; }
80
- }
80
+ public override string SourceColumn { get ; set ; }
81
81
82
- public override bool SourceColumnNullMapping
83
- {
84
- get { throw new NotSupportedException ( ) ; }
85
- set { throw new NotSupportedException ( ) ; }
86
- }
82
+ public override bool SourceColumnNullMapping { get ; set ; }
87
83
88
84
#if ! NETSTANDARD1_3
89
- public override DataRowVersion SourceVersion
90
- {
91
- get { throw new NotSupportedException ( ) ; }
92
- set { throw new NotSupportedException ( ) ; }
93
- }
85
+ public override DataRowVersion SourceVersion { get ; set ; }
94
86
#endif
95
87
96
88
public override object Value { get ; set ; }
You can’t perform that action at this time.
0 commit comments