@@ -646,7 +646,7 @@ public static IDataReader ExecuteReader(this IDbConnection cnn, CommandDefinitio
646
646
/// <param name="commandType">The type of command to execute.</param>
647
647
/// <remarks>Note: each row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
648
648
public static IEnumerable < dynamic > Query ( this IDbConnection cnn , string sql , object param = null , IDbTransaction transaction = null , bool buffered = true , int ? commandTimeout = null , CommandType ? commandType = null ) =>
649
- Query < DapperRow > ( cnn , sql , param as object , transaction , buffered , commandTimeout , commandType ) ;
649
+ Query < DapperRow > ( cnn , sql , param , transaction , buffered , commandTimeout , commandType ) ;
650
650
651
651
/// <summary>
652
652
/// Return a dynamic object with properties matching the columns.
@@ -659,7 +659,7 @@ public static IEnumerable<dynamic> Query(this IDbConnection cnn, string sql, obj
659
659
/// <param name="commandType">The type of command to execute.</param>
660
660
/// <remarks>Note: the row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
661
661
public static dynamic QueryFirst ( this IDbConnection cnn , string sql , object param = null , IDbTransaction transaction = null , int ? commandTimeout = null , CommandType ? commandType = null ) =>
662
- QueryFirst < DapperRow > ( cnn , sql , param as object , transaction , commandTimeout , commandType ) ;
662
+ QueryFirst < DapperRow > ( cnn , sql , param , transaction , commandTimeout , commandType ) ;
663
663
664
664
/// <summary>
665
665
/// Return a dynamic object with properties matching the columns.
@@ -672,7 +672,7 @@ public static dynamic QueryFirst(this IDbConnection cnn, string sql, object para
672
672
/// <param name="commandType">The type of command to execute.</param>
673
673
/// <remarks>Note: the row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
674
674
public static dynamic QueryFirstOrDefault ( this IDbConnection cnn , string sql , object param = null , IDbTransaction transaction = null , int ? commandTimeout = null , CommandType ? commandType = null ) =>
675
- QueryFirstOrDefault < DapperRow > ( cnn , sql , param as object , transaction , commandTimeout , commandType ) ;
675
+ QueryFirstOrDefault < DapperRow > ( cnn , sql , param , transaction , commandTimeout , commandType ) ;
676
676
677
677
/// <summary>
678
678
/// Return a dynamic object with properties matching the columns.
@@ -685,7 +685,7 @@ public static dynamic QueryFirstOrDefault(this IDbConnection cnn, string sql, ob
685
685
/// <param name="commandType">The type of command to execute.</param>
686
686
/// <remarks>Note: the row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
687
687
public static dynamic QuerySingle ( this IDbConnection cnn , string sql , object param = null , IDbTransaction transaction = null , int ? commandTimeout = null , CommandType ? commandType = null ) =>
688
- QuerySingle < DapperRow > ( cnn , sql , param as object , transaction , commandTimeout , commandType ) ;
688
+ QuerySingle < DapperRow > ( cnn , sql , param , transaction , commandTimeout , commandType ) ;
689
689
690
690
/// <summary>
691
691
/// Return a dynamic object with properties matching the columns.
@@ -698,7 +698,7 @@ public static dynamic QuerySingle(this IDbConnection cnn, string sql, object par
698
698
/// <param name="commandType">The type of command to execute.</param>
699
699
/// <remarks>Note: the row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
700
700
public static dynamic QuerySingleOrDefault ( this IDbConnection cnn , string sql , object param = null , IDbTransaction transaction = null , int ? commandTimeout = null , CommandType ? commandType = null ) =>
701
- QuerySingleOrDefault < DapperRow > ( cnn , sql , param as object , transaction , commandTimeout , commandType ) ;
701
+ QuerySingleOrDefault < DapperRow > ( cnn , sql , param , transaction , commandTimeout , commandType ) ;
702
702
703
703
/// <summary>
704
704
/// Executes a query, returning the data typed as <typeparamref name="T"/>.
0 commit comments