Commit 48f6754a authored by Nick Craver's avatar Nick Craver

Updte literal example to be a bit better

parent d702fb82
......@@ -202,7 +202,7 @@ Literal replacements
Dapper supports literal replacements for bool and numeric types.
```csharp
connection.Query("select * from User where UserId = {=Id}", new {Id = 1}));
connection.Query("select * from User where UserTypeId = {=Admin}", new { UserTypeId.Admin }));
```
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment