SkillAgentSearch skills...

Dapper.Transaction

IDbTransaction extension methods for Dapper: A high performance Micro-ORM supporting SQL Server, MySQL, Sqlite, SqlCE, Firebird etc..

Install / Use

/learn @zzzprojects/Dapper.Transaction
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

What's Dapper Transaction?

Dapper Transaction is exactly like Dapper but extend the IDbTransaction interface instead and use Dapper under the hood.

It's a simple library to make it easier to work with a transaction.

Everything Dapper support, Dapper Transaction support it as well.

using (var connection = new SqlConnection(FiddleHelper.GetConnectionStringSqlServerW3Schools()))
{
	connection.Open();
	
	using (var transaction = connection.BeginTransaction())
	{
		// Dapper
		var affectedRows1 = connection.Execute(sql, new {CustomerName = "Mark"}, transaction: transaction);
		
		// Dapper Transaction
		var affectedRows2 = transaction.Execute(sql, new {CustomerName = "Mark"});

		transaction.Commit();
	}
}

Read more on our Website.

Downloads

Dapper.Transaction

nuget nuget

PM> NuGet\Install-Package Dapper.Transaction
> dotnet add package Dapper.Transaction

Dapper.Transaction.StrongName

nuget nuget

Sponsors

ZZZ Projects owns and maintains Dapper.Transaction as part of our mission to add value to the .NET community

Through Dapper Plus and Entity Framework Extensions, we actively sponsor and help key open-source libraries grow.

Dapper Plus

Entity Framework Extensions

More Projects

To view all our free and paid projects, visit our website ZZZ Projects.

View on GitHub
GitHub Stars33
CategoryData
Updated7mo ago
Forks10

Languages

C#

Security Score

87/100

Audited on Aug 4, 2025

No findings