I would like to run multiple insert statements on multiple tables. I am using dapper.net. I don\'t see any way to handle transactions with dapper.net.
Please share y
Here the code snippet:
using System.Transactions; .... using (var transactionScope = new TransactionScope()) { DoYourDapperWork(); transactionScope.Complete(); }
Note that you need to add reference to System.Transactions assembly because it is not referenced by default.
System.Transactions