public static object ExecuteScalar(this IDbTransaction transaction, CommandType commandType, string commandText, params IDbDataParameter[] commandParameters) { return(transaction.ExecuteScalar(commandType, commandText, (IEnumerable <IDbDataParameter>)commandParameters)); }