Skip to main content
net10.0net8.0net9.0.NETStandard2.0

A hybrid .NET ORM library for MySQL (using MySqlConnector).

Published
Jul 18, 2026
3mo ago
Total Downloads
1.5M
1,485,879

Install

dotnet add package RepoDb.MySqlConnector --version 1.15.0-telemetry
ProductVersions
.NET
net10.0net8.0net9.0
.NET Standard
netstandard2.0

README

MySqlConnectorBuild MySqlConnectorHome MySqlConnectorVersion

RepoDb.MySqlConnector β€” RepoDB for MySQL (MySqlConnector)

The MySQL provider for RepoDB β€” a fast, lightweight .NET ORM that lets you use raw SQL and fluent operations side by side on the same connection. Backed by the high-performance MySqlConnector driver.

Important Pages

  • GitHub Home β€” core library and source code.
  • Website β€” full documentation, API reference, and blog.

Community

Dependencies

  • MySqlConnector β€” high-performance MySQL data provider.
  • RepoDb β€” the RepoDB core library.

License

Apache-2.0 β€” Copyright Β© 2020 Michael Camara Pendon


Installation

Install-Package RepoDb.MySqlConnector

Or visit the installation page for more options.

Get Started

Initialize the bootstrapper once at application startup:

RepoDb.MySqlConnectorBootstrap.Initialize();

Then use any RepoDB operation directly on your MySqlConnection:

Query

using (var connection = new MySqlConnection(ConnectionString))
{
	var customer = connection.Query<Customer>(c => c.Id == 10045);
}

Insert

var customer = new Customer
{
	FirstName = "John",
	LastName = "Doe",
	IsActive = true
};
using (var connection = new MySqlConnection(ConnectionString))
{
	var id = connection.Insert<Customer>(customer);
}

Update

using (var connection = new MySqlConnection(ConnectionString))
{
	var customer = connection.Query<Customer>(10045);
	customer.FirstName = "John";
	customer.LastUpdatedUtc = DateTime.UtcNow;
	var affectedRows = connection.Update<Customer>(customer);
}

Delete

using (var connection = new MySqlConnection(ConnectionString))
{
	var customer = connection.Query<Customer>(10045);
	var deletedCount = connection.Delete<Customer>(customer);
}

Visit the get-started page for the full MySQL guide.

Changes from Previous Version

No structural changes between v1.14.0 and v1.15.0-telemetry.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.