Skip to content

Commit 009b430

Browse files
authored
Merge pull request #1560 from wswind/main
Remove an extra right parenthesis in literal replacements demo code.
2 parents 812b060 + 9c862af commit 009b430

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
@@ -201,7 +201,7 @@ Literal replacements
201201
Dapper supports literal replacements for bool and numeric types.
202202

203203
```csharp
204-
connection.Query("select * from User where UserTypeId = {=Admin}", new { UserTypeId.Admin }));
204+
connection.Query("select * from User where UserTypeId = {=Admin}", new { UserTypeId.Admin });
205205
```
206206

207207
The literal replacement is not sent as a parameter; this allows better plans and filtered index usage but should usually be used sparingly and after testing. This feature is particularly useful when the value being injected

0 commit comments

Comments
 (0)