c# dapper stored procedure code example Example: how to use stored procedure in dapper var sql = "exec [Sales by Year] @Beginning_Date, @Ending_Date"