Dapper.NETTransactions

Syntax

  • conn.Execute(sql, transaction: tran); // specify the parameter by name
  • conn.Execute(sql, parameters, tran);
  • conn.Query(sql, transaction: tran);
  • conn.Query(sql, parameters, tran);
  • await conn.ExecuteAsync(sql, transaction: tran); // Async
  • await conn.ExecuteAsync(sql, parameters, tran);
  • await conn.QueryAsync(sql, transaction: tran);
  • await conn.QueryAsync(sql, parameters, tran);

Related Examples

Speed up inserts