@@ -147,7 +147,7 @@ public NpgsqlCommand(string cmdText, [CanBeNull] NpgsqlConnection connection, [C
147147 [ Category ( "Data" ) ]
148148 public override string CommandText
149149 {
150- get { return _commandText ; }
150+ get => _commandText ;
151151 set
152152 {
153153 if ( value == null )
@@ -166,10 +166,7 @@ public override string CommandText
166166 [ DefaultValue ( DefaultTimeout ) ]
167167 public override int CommandTimeout
168168 {
169- get
170- {
171- return _timeout ?? ( _connection ? . CommandTimeout ?? DefaultTimeout ) ;
172- }
169+ get => _timeout ?? ( _connection ? . CommandTimeout ?? DefaultTimeout ) ;
173170 set
174171 {
175172 if ( value < 0 ) {
@@ -194,8 +191,8 @@ public override int CommandTimeout
194191 /// </summary>
195192 protected override DbConnection DbConnection
196193 {
197- get { return Connection ; }
198- set { Connection = ( NpgsqlConnection ) value ; }
194+ get => Connection ;
195+ set => Connection = ( NpgsqlConnection ) value ;
199196 }
200197
201198 /// <summary>
@@ -208,7 +205,7 @@ protected override DbConnection DbConnection
208205 [ CanBeNull ]
209206 public new NpgsqlConnection Connection
210207 {
211- get { return _connection ; }
208+ get => _connection ;
212209 set
213210 {
214211 if ( _connection == value )
@@ -280,7 +277,7 @@ public override UpdateRowSource UpdatedRowSource
280277 /// </summary>
281278 public bool AllResultTypesAreUnknown
282279 {
283- get { return _allResultTypesAreUnknown ; }
280+ get => _allResultTypesAreUnknown ;
284281 set
285282 {
286283 // TODO: Check that this isn't modified after calling prepare
@@ -305,7 +302,7 @@ public bool AllResultTypesAreUnknown
305302 /// </remarks>
306303 public bool [ ] UnknownResultTypeList
307304 {
308- get { return _unknownResultTypeList ; }
305+ get => _unknownResultTypeList ;
309306 set
310307 {
311308 // TODO: Check that this isn't modified after calling prepare
@@ -1031,8 +1028,8 @@ async ValueTask<NpgsqlDataReader> ExecuteDbDataReader(CommandBehavior behavior,
10311028 /// </summary>
10321029 protected override DbTransaction DbTransaction
10331030 {
1034- get { return Transaction ; }
1035- set { Transaction = ( NpgsqlTransaction ) value ; }
1031+ get => Transaction ;
1032+ set => Transaction = ( NpgsqlTransaction ) value ;
10361033 }
10371034
10381035 /// <summary>
@@ -1051,7 +1048,7 @@ protected override DbTransaction DbTransaction
10511048 }
10521049 return _transaction ;
10531050 }
1054- set { _transaction = value ; }
1051+ set => _transaction = value ;
10551052 }
10561053
10571054 #endregion Transactions
0 commit comments