Amit Amit - 1 year ago 750
C# Question

transaction with dapper dot net

I would like to run multiple insert statements on multiple tables. I am using I don't see any way to handle transactions with

Please share your ideas on how to use transactions with

Answer Source

Here the code snippet:

using System.Transactions;    
using (var transactionScope = new TransactionScope())

Note that you need to add reference to System.Transactions assembly because it is not referenced by default.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download