Amit Amit - 8 months ago 536
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


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.