Skip to content

Commit 942f91d

Browse files
authored
Merge pull request #1507 from imba-tjd/patch-1
Readme: Fix Syntax error: `Cannot apply indexing with [] to an expression of type 'IEnumerable<dynamic>'`
2 parents e47d819 + d2877e0 commit 942f91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This method will execute SQL and return a dynamic list.
6565
Example usage:
6666

6767
```csharp
68-
var rows = connection.Query("select 1 A, 2 B union all select 3, 4");
68+
var rows = connection.Query("select 1 A, 2 B union all select 3, 4").AsList();
6969

7070
Assert.Equal(1, (int)rows[0].A);
7171
Assert.Equal(2, (int)rows[0].B);

0 commit comments

Comments
 (0)