@@ -19,149 +19,149 @@ public MySqlConnectionStringBuilder(string connectionString)
19
19
// Base Options
20
20
public string Server
21
21
{
22
- get { return MySqlConnectionStringOption . Server . GetValue ( this ) ; }
23
- set { MySqlConnectionStringOption . Server . SetValue ( this , value ) ; }
22
+ get => MySqlConnectionStringOption . Server . GetValue ( this ) ;
23
+ set => MySqlConnectionStringOption . Server . SetValue ( this , value ) ;
24
24
}
25
25
26
26
public uint Port
27
27
{
28
- get { return MySqlConnectionStringOption . Port . GetValue ( this ) ; }
29
- set { MySqlConnectionStringOption . Port . SetValue ( this , value ) ; }
28
+ get => MySqlConnectionStringOption . Port . GetValue ( this ) ;
29
+ set => MySqlConnectionStringOption . Port . SetValue ( this , value ) ;
30
30
}
31
31
32
32
public string UserID
33
33
{
34
- get { return MySqlConnectionStringOption . UserID . GetValue ( this ) ; }
35
- set { MySqlConnectionStringOption . UserID . SetValue ( this , value ) ; }
34
+ get => MySqlConnectionStringOption . UserID . GetValue ( this ) ;
35
+ set => MySqlConnectionStringOption . UserID . SetValue ( this , value ) ;
36
36
}
37
37
38
38
public string Password
39
39
{
40
- get { return MySqlConnectionStringOption . Password . GetValue ( this ) ; }
41
- set { MySqlConnectionStringOption . Password . SetValue ( this , value ) ; }
40
+ get => MySqlConnectionStringOption . Password . GetValue ( this ) ;
41
+ set => MySqlConnectionStringOption . Password . SetValue ( this , value ) ;
42
42
}
43
43
44
44
public string Database
45
45
{
46
- get { return MySqlConnectionStringOption . Database . GetValue ( this ) ; }
47
- set { MySqlConnectionStringOption . Database . SetValue ( this , value ) ; }
46
+ get => MySqlConnectionStringOption . Database . GetValue ( this ) ;
47
+ set => MySqlConnectionStringOption . Database . SetValue ( this , value ) ;
48
48
}
49
49
50
50
// SSL/TLS Options
51
51
public MySqlSslMode SslMode
52
52
{
53
- get { return MySqlConnectionStringOption . SslMode . GetValue ( this ) ; }
54
- set { MySqlConnectionStringOption . SslMode . SetValue ( this , value ) ; }
53
+ get => MySqlConnectionStringOption . SslMode . GetValue ( this ) ;
54
+ set => MySqlConnectionStringOption . SslMode . SetValue ( this , value ) ;
55
55
}
56
56
57
57
public string CertificateFile
58
58
{
59
- get { return MySqlConnectionStringOption . CertificateFile . GetValue ( this ) ; }
60
- set { MySqlConnectionStringOption . CertificateFile . SetValue ( this , value ) ; }
59
+ get => MySqlConnectionStringOption . CertificateFile . GetValue ( this ) ;
60
+ set => MySqlConnectionStringOption . CertificateFile . SetValue ( this , value ) ;
61
61
}
62
62
63
63
public string CertificatePassword
64
64
{
65
- get { return MySqlConnectionStringOption . CertificatePassword . GetValue ( this ) ; }
66
- set { MySqlConnectionStringOption . CertificatePassword . SetValue ( this , value ) ; }
65
+ get => MySqlConnectionStringOption . CertificatePassword . GetValue ( this ) ;
66
+ set => MySqlConnectionStringOption . CertificatePassword . SetValue ( this , value ) ;
67
67
}
68
68
69
69
// Connection Pooling Options
70
70
public bool Pooling
71
71
{
72
- get { return MySqlConnectionStringOption . Pooling . GetValue ( this ) ; }
73
- set { MySqlConnectionStringOption . Pooling . SetValue ( this , value ) ; }
72
+ get => MySqlConnectionStringOption . Pooling . GetValue ( this ) ;
73
+ set => MySqlConnectionStringOption . Pooling . SetValue ( this , value ) ;
74
74
}
75
75
76
76
public bool ConnectionReset
77
77
{
78
- get { return MySqlConnectionStringOption . ConnectionReset . GetValue ( this ) ; }
79
- set { MySqlConnectionStringOption . ConnectionReset . SetValue ( this , value ) ; }
78
+ get => MySqlConnectionStringOption . ConnectionReset . GetValue ( this ) ;
79
+ set => MySqlConnectionStringOption . ConnectionReset . SetValue ( this , value ) ;
80
80
}
81
81
82
82
public uint MinimumPoolSize
83
83
{
84
- get { return MySqlConnectionStringOption . MinimumPoolSize . GetValue ( this ) ; }
85
- set { MySqlConnectionStringOption . MinimumPoolSize . SetValue ( this , value ) ; }
84
+ get => MySqlConnectionStringOption . MinimumPoolSize . GetValue ( this ) ;
85
+ set => MySqlConnectionStringOption . MinimumPoolSize . SetValue ( this , value ) ;
86
86
}
87
87
88
88
public uint MaximumPoolSize
89
89
{
90
- get { return MySqlConnectionStringOption . MaximumPoolSize . GetValue ( this ) ; }
91
- set { MySqlConnectionStringOption . MaximumPoolSize . SetValue ( this , value ) ; }
90
+ get => MySqlConnectionStringOption . MaximumPoolSize . GetValue ( this ) ;
91
+ set => MySqlConnectionStringOption . MaximumPoolSize . SetValue ( this , value ) ;
92
92
}
93
93
94
94
// Other Options
95
95
public bool AllowUserVariables
96
96
{
97
- get { return MySqlConnectionStringOption . AllowUserVariables . GetValue ( this ) ; }
98
- set { MySqlConnectionStringOption . AllowUserVariables . SetValue ( this , value ) ; }
97
+ get => MySqlConnectionStringOption . AllowUserVariables . GetValue ( this ) ;
98
+ set => MySqlConnectionStringOption . AllowUserVariables . SetValue ( this , value ) ;
99
99
}
100
100
101
101
public bool BufferResultSets
102
102
{
103
- get { return MySqlConnectionStringOption . BufferResultSets . GetValue ( this ) ; }
104
- set { MySqlConnectionStringOption . BufferResultSets . SetValue ( this , value ) ; }
103
+ get => MySqlConnectionStringOption . BufferResultSets . GetValue ( this ) ;
104
+ set => MySqlConnectionStringOption . BufferResultSets . SetValue ( this , value ) ;
105
105
}
106
106
107
107
public string CharacterSet
108
108
{
109
- get { return MySqlConnectionStringOption . CharacterSet . GetValue ( this ) ; }
110
- set { MySqlConnectionStringOption . CharacterSet . SetValue ( this , value ) ; }
109
+ get => MySqlConnectionStringOption . CharacterSet . GetValue ( this ) ;
110
+ set => MySqlConnectionStringOption . CharacterSet . SetValue ( this , value ) ;
111
111
}
112
112
113
113
public uint ConnectionTimeout
114
114
{
115
- get { return MySqlConnectionStringOption . ConnectionTimeout . GetValue ( this ) ; }
116
- set { MySqlConnectionStringOption . ConnectionTimeout . SetValue ( this , value ) ; }
115
+ get => MySqlConnectionStringOption . ConnectionTimeout . GetValue ( this ) ;
116
+ set => MySqlConnectionStringOption . ConnectionTimeout . SetValue ( this , value ) ;
117
117
}
118
118
119
119
public bool ConvertZeroDateTime
120
120
{
121
- get { return MySqlConnectionStringOption . ConvertZeroDateTime . GetValue ( this ) ; }
122
- set { MySqlConnectionStringOption . ConvertZeroDateTime . SetValue ( this , value ) ; }
121
+ get => MySqlConnectionStringOption . ConvertZeroDateTime . GetValue ( this ) ;
122
+ set => MySqlConnectionStringOption . ConvertZeroDateTime . SetValue ( this , value ) ;
123
123
}
124
124
125
125
public bool ForceSynchronous
126
126
{
127
- get { return MySqlConnectionStringOption . ForceSynchronous . GetValue ( this ) ; }
128
- set { MySqlConnectionStringOption . ForceSynchronous . SetValue ( this , value ) ; }
127
+ get => MySqlConnectionStringOption . ForceSynchronous . GetValue ( this ) ;
128
+ set => MySqlConnectionStringOption . ForceSynchronous . SetValue ( this , value ) ;
129
129
}
130
130
131
131
public uint Keepalive
132
132
{
133
- get { return MySqlConnectionStringOption . Keepalive . GetValue ( this ) ; }
134
- set { MySqlConnectionStringOption . Keepalive . SetValue ( this , value ) ; }
133
+ get => MySqlConnectionStringOption . Keepalive . GetValue ( this ) ;
134
+ set => MySqlConnectionStringOption . Keepalive . SetValue ( this , value ) ;
135
135
}
136
136
137
137
public bool OldGuids
138
138
{
139
- get { return MySqlConnectionStringOption . OldGuids . GetValue ( this ) ; }
140
- set { MySqlConnectionStringOption . OldGuids . SetValue ( this , value ) ; }
139
+ get => MySqlConnectionStringOption . OldGuids . GetValue ( this ) ;
140
+ set => MySqlConnectionStringOption . OldGuids . SetValue ( this , value ) ;
141
141
}
142
142
143
143
public bool PersistSecurityInfo
144
144
{
145
- get { return MySqlConnectionStringOption . PersistSecurityInfo . GetValue ( this ) ; }
146
- set { MySqlConnectionStringOption . PersistSecurityInfo . SetValue ( this , value ) ; }
145
+ get => MySqlConnectionStringOption . PersistSecurityInfo . GetValue ( this ) ;
146
+ set => MySqlConnectionStringOption . PersistSecurityInfo . SetValue ( this , value ) ;
147
147
}
148
148
149
149
public bool TreatTinyAsBoolean
150
150
{
151
- get { return MySqlConnectionStringOption . TreatTinyAsBoolean . GetValue ( this ) ; }
152
- set { MySqlConnectionStringOption . TreatTinyAsBoolean . SetValue ( this , value ) ; }
151
+ get => MySqlConnectionStringOption . TreatTinyAsBoolean . GetValue ( this ) ;
152
+ set => MySqlConnectionStringOption . TreatTinyAsBoolean . SetValue ( this , value ) ;
153
153
}
154
154
155
155
public bool UseAffectedRows
156
156
{
157
- get { return MySqlConnectionStringOption . UseAffectedRows . GetValue ( this ) ; }
158
- set { MySqlConnectionStringOption . UseAffectedRows . SetValue ( this , value ) ; }
157
+ get => MySqlConnectionStringOption . UseAffectedRows . GetValue ( this ) ;
158
+ set => MySqlConnectionStringOption . UseAffectedRows . SetValue ( this , value ) ;
159
159
}
160
160
161
161
public bool UseCompression
162
162
{
163
- get { return MySqlConnectionStringOption . UseCompression . GetValue ( this ) ; }
164
- set { MySqlConnectionStringOption . UseCompression . SetValue ( this , value ) ; }
163
+ get => MySqlConnectionStringOption . UseCompression . GetValue ( this ) ;
164
+ set => MySqlConnectionStringOption . UseCompression . SetValue ( this , value ) ;
165
165
}
166
166
167
167
// Other Methods
@@ -179,8 +179,8 @@ public override bool Remove(string key)
179
179
180
180
public override object this [ string key ]
181
181
{
182
- get { return MySqlConnectionStringOption . GetOptionForKey ( key ) . GetObject ( this ) ; }
183
- set { base [ MySqlConnectionStringOption . GetOptionForKey ( key ) . Key ] = Convert . ToString ( value , CultureInfo . InvariantCulture ) ; }
182
+ get => MySqlConnectionStringOption . GetOptionForKey ( key ) . GetObject ( this ) ;
183
+ set => base [ MySqlConnectionStringOption . GetOptionForKey ( key ) . Key ] = Convert . ToString ( value , CultureInfo . InvariantCulture ) ;
184
184
}
185
185
186
186
internal string GetConnectionString ( bool includePassword )
0 commit comments