Powerful, thread-safe database access library with fluent methods for building SQL queries in C#. Supports MySQL, SQLite, PostgreSQL, MSSQL and DuckDB.
Unleasharp.DB provides everything you need for modern database operations in C#
Automatic connection creation, management, and regeneration after specified intervals to ensure database connections are always open and ready for use.
Thread-safe connection management through ConnectorManager. Each thread receives its own dedicated database connection instance for safe parallel operations.
Fluent methods pattern for intuitive query building with Query class for parameters and QueryBuilder for execution and result mapping.
Automatic mapping of database results to C# objects using generic type parameters. Supports both simple class mapping and attribute-based schema definitions.
Built with performance in mind, delivering fast execution times with minimal overhead.
Consistent API across multiple database systems with specialized implementations for MySQL, SQLite, PostgreSQL, and MSSQL.
Select your preferred database provider to get started with Unleasharp.DB. All packages are available on NuGet.
Open your Package Manager Console and run:
Install-Package Unleasharp.DB.MySQL
Run the following command in your project directory:
dotnet add package Unleasharp.DB.MySQL
Add to your .csproj file:
<PackageReference Include="Unleasharp.DB.MySQL" Version="1.0.0" />
Unleasharp.DB comes with dedicated packages for all major database systems
See how easy it is to work with Unleasharp.DB in your C# projects
Join the new Unleasharp.DB ecosystem to build faster, more maintainable C# applications.
Install Now