If you need to return a value, use Query (). If you need to execute a query that returns nothing, such as an update, then use Execute ().
Request example:
var myList = connection.Query("select * from myTable")
Execution Example:
connection.Execute("update myTable set columnA = @value", new {value = "ABC"})
Void ray
source share