You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ Literal replacements
201
201
Dapper supports literal replacements for bool and numeric types.
202
202
203
203
```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 });
205
205
```
206
206
207
207
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