Skip to content

Commit c62611a

Browse files
authored
Fix signatures in readme (#1683)
1 parent 31981fd commit c62611a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Execute a query and map the results to a strongly typed List
3030
------------------------------------------------------------
3131

3232
```csharp
33-
public static IEnumerable<T> Query<T>(this IDbConnection cnn, string sql, object param = null, SqlTransaction transaction = null, bool buffered = true)
33+
public static IEnumerable<T> Query<T>(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = null, CommandType? commandType = null)
3434
```
3535
Example usage:
3636

@@ -57,7 +57,7 @@ Execute a query and map it to a list of dynamic objects
5757
-------------------------------------------------------
5858

5959
```csharp
60-
public static IEnumerable<dynamic> Query (this IDbConnection cnn, string sql, object param = null, SqlTransaction transaction = null, bool buffered = true)
60+
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)
6161
```
6262
This method will execute SQL and return a dynamic list.
6363

@@ -76,7 +76,7 @@ Execute a Command that returns no results
7676
-----------------------------------------
7777

7878
```csharp
79-
public static int Execute(this IDbConnection cnn, string sql, object param = null, SqlTransaction transaction = null)
79+
public static int Execute(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null)
8080
```
8181

8282
Example usage:

0 commit comments

Comments
 (0)