API
Dapper Execute
Executes a command and returns its affected-row count as reported by the provider.
Formal Syntax & Structure
csharp syntaxcsharp
db.Execute(sql, new { Id = 1, Amount = 2 })Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.db.Execute(sql, new { Id = 1, Amount = 2 })