Execute: Insert, Update and Delete

Execute runs INSERT, UPDATE and DELETE and returns how many rows changed. To get a new row's id back, query it with QuerySingle<int>.

Updated

Cheat sheet: Execute: Insert, Update and Delete
Category
C#
Level
Journeyman
Tags
c-sharp, Execute(), SCOPE_IDENTITY, t-sql