@@ -46,12 +46,12 @@ public virtual void BindBoolean(DbParameter parameter, object value)
4646 public virtual void BindChar ( DbParameter parameter , object value )
4747 {
4848 parameter . DbType = DbType . String ;
49- if ( value == null ) {
49+ if ( value == null ) {
5050 parameter . Value = DBNull . Value ;
5151 return ;
5252 }
5353 var _char = ( char ) value ;
54- parameter . Value = _char == default ( char ) ? string . Empty : _char . ToString ( ) ;
54+ parameter . Value = _char == default ( char ) ? string . Empty : _char . ToString ( ) ;
5555 }
5656
5757 public virtual void BindString ( DbParameter parameter , object value )
@@ -155,7 +155,7 @@ public virtual void BindDateTimeOffset(DbParameter parameter, object value)
155155 public virtual void BindTimeSpan ( DbParameter parameter , object value )
156156 {
157157 parameter . DbType = DbType . Int64 ;
158- if ( value != null ) {
158+ if ( value != null ) {
159159 var timeSpan = ValueRangeValidator . Correct ( ( TimeSpan ) value , Int64TimeSpanRange ) ;
160160 parameter . Value = timeSpan . Ticks * 100 ;
161161 }
@@ -226,7 +226,7 @@ public virtual object ReadDateTime(DbDataReader reader, int index) =>
226226#if NET6_0_OR_GREATER
227227
228228 public virtual object ReadDateOnly ( DbDataReader reader , int index ) =>
229- DateOnly . FromDateTime ( reader . GetFieldValue < DateTime > ( index ) ) ;
229+ DateOnly . FromDateTime ( reader . GetFieldValue < DateTime > ( index ) ) ;
230230
231231 public virtual object ReadTimeOnly ( DbDataReader reader , int index ) =>
232232 TimeOnly . FromTimeSpan ( reader . GetFieldValue < TimeSpan > ( index ) ) ;
@@ -311,9 +311,9 @@ public virtual SqlValueType MapDouble(int? length, int? precision, int? scale) =
311311
312312 public virtual SqlValueType MapDecimal ( int ? length , int ? precision , int ? scale )
313313 {
314- if ( MaxDecimalPrecision == null )
314+ if ( MaxDecimalPrecision == null )
315315 return new SqlValueType ( SqlType . Decimal ) ;
316- if ( precision == null ) {
316+ if ( precision == null ) {
317317 var resultPrecision = Math . Min ( DecimalPrecisionLimit , MaxDecimalPrecision . Value ) ;
318318 var resultScale = resultPrecision / 2 ;
319319 return new SqlValueType ( SqlType . Decimal , resultPrecision , resultScale ) ;
@@ -352,9 +352,9 @@ public virtual SqlValueType MapByteArray(int? length, int? precision, int? scale
352352
353353 protected static SqlValueType ChooseStreamType ( SqlType varType , SqlType varMaxType , int ? length , int ? varTypeMaxLength )
354354 {
355- if ( varTypeMaxLength == null )
355+ if ( varTypeMaxLength == null )
356356 return new SqlValueType ( varMaxType ) ;
357- if ( length == null )
357+ if ( length == null )
358358 return new SqlValueType ( varType , varTypeMaxLength . Value ) ;
359359 if ( length . Value > varTypeMaxLength . Value )
360360 return new SqlValueType ( varMaxType ) ;
@@ -367,13 +367,13 @@ protected static SqlValueType ChooseStreamType(SqlType varType, SqlType varMaxTy
367367 public virtual void Initialize ( )
368368 {
369369 var varchar = Driver . ServerInfo . DataTypes . VarChar ;
370- if ( varchar != null )
370+ if ( varchar != null )
371371 VarCharMaxLength = varchar . MaxLength ;
372372 var varbinary = Driver . ServerInfo . DataTypes . VarBinary ;
373- if ( varbinary != null )
373+ if ( varbinary != null )
374374 VarBinaryMaxLength = varbinary . MaxLength ;
375375 var _decimal = Driver . ServerInfo . DataTypes . Decimal ;
376- if ( _decimal != null )
376+ if ( _decimal != null )
377377 MaxDecimalPrecision = _decimal . MaxPrecision ;
378378 }
379379
0 commit comments