Dapper supports literal replacements for bool and numeric types.
```csharp
connection.Query("select * from User where UserId = {=Id}",new{Id=1}));
```
The literal replacement is not sent as a parameter, this allows better plans and filtered index usage.
Buffered vs Unbuffered readers
Buffered vs Unbuffered readers
---------------------
---------------------
Dapper's default behavior is to execute your sql and buffer the entire reader on return. This is ideal in most cases as it minimizes shared locks in the db and cuts down on db network time.
Dapper's default behavior is to execute your sql and buffer the entire reader on return. This is ideal in most cases as it minimizes shared locks in the db and cuts down on db network time.