nextorm.mysql
1.0.9
dotnet add package nextorm.mysql --version 1.0.9
NuGet\Install-Package nextorm.mysql -Version 1.0.9
<PackageReference Include="nextorm.mysql" Version="1.0.9" />
<PackageVersion Include="nextorm.mysql" Version="1.0.9" />
<PackageReference Include="nextorm.mysql" />
paket add nextorm.mysql --version 1.0.9
#r "nuget: nextorm.mysql, 1.0.9"
#:package nextorm.mysql@1.0.9
#addin nuget:?package=nextorm.mysql&version=1.0.9
#tool nuget:?package=nextorm.mysql&version=1.0.9
Nextorm — MySQL provider
nextorm.mysql adds MySQL support to Nextorm — a zero-SQL
object-relational mapper for .NET that turns typed C# queries into SQL and materializes rows without
change tracking. The package supplies the MySQL dialect and the UseMySql builder extension over
MySqlConnector.
Installation
All current nextorm releases are prereleases, so --prerelease is required:
dotnet add package nextorm --prerelease
dotnet add package nextorm.mysql --prerelease
Package Manager Console: Install-Package nextorm -Prerelease and
Install-Package nextorm.mysql -Prerelease.
Usage
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NextORM.Core;
using NextORM.MySql;
var builder = new DataContextBuilder()
.UseMySql("Server=localhost;Database=app;User ID=app;Password=secret");
using var dataContext = builder.CreateDataContext();
await foreach (var row in dataContext.From<IOrder>()
.Where(order => order.Total > 100)
.Select(order => new { order.Id, order.Total })
.ToAsyncEnumerable())
{
Console.WriteLine($"{row.Id}: {row.Total}");
}
[SqlTable("orders")]
public interface IOrder
{
[Key]
[Column("id")]
int Id { get; set; }
[Column("total")]
decimal Total { get; set; }
}
Values are bound as @name parameters and identifiers are backtick-quoted. UseMySql also accepts an
open DbConnection.
Good to know
- Key upserts render
ON DUPLICATE KEY UPDATE, and statements batch throughMySqlBatch. - Native index hints (
USE/FORCE/IGNORE INDEX) and source-levelFOR UPDATE OF/FOR SHARE OFlocks are available; SQL Server's locking table hints are not. - Bulk insert uses the portable
INSERT … VALUESpath, so the SQL Server-only bulk-copy flags are rejected rather than ignored.
Documentation
- Connecting a provider: MySQL
- Quickstart
- Query reuse: plan cache vs
Prepare() - Comparisons and benchmarks
Status
Beta: every release so far is a prerelease, the public API still changes between them, and backward compatibility is not preserved yet. Release notes are on GitHub Releases.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- MySqlConnector (>= 2.6.2)
- nextorm (>= 1.0.9)
-
net11.0
- MySqlConnector (>= 2.6.2)
- nextorm (>= 1.0.9)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on nextorm.mysql:
| Package | Downloads |
|---|---|
|
nextorm.mariadb
MariaDB provider for Nextorm, a zero-SQL ORM for .NET: adds MariaDB's dialect differences (no source-level row locks, version-gated UPDATE ... RETURNING) and UseMariaDb() over MySqlConnector. |
|
|
nextorm.entityframeworkcore
Entity Framework Core integration for Nextorm, a zero-SQL ORM for .NET: run nextorm queries and commands over an existing DbContext connection and transaction, reusing the EF model mapping. Adds CreateNextOrmContext(). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.9 | 94 | 11/11/2026 |
| 1.0.9-rc5 | 66 | 11/8/2026 |
| 1.0.9-rc4 | 87 | 10/29/2026 |
| 1.0.9-rc3 | 77 | 10/20/2026 |
| 1.0.9-rc2 | 80 | 10/10/2026 |
| 1.0.9-rc1 | 83 | 10/7/2026 |
| 1.0.9-b | 80 | 10/5/2026 |
| 1.0.9-a | 89 | 9/29/2026 |
| 1.0.8-b | 87 | 9/27/2026 |
| 1.0.7-b | 92 | 9/25/2026 |
| 1.0.6-alpha | 90 | 9/25/2026 |
| 1.0.5-alpha | 81 | 9/24/2026 |
| 1.0.4-alpha | 85 | 9/22/2026 |
| 1.0.3.1-alpha | 84 | 9/22/2026 |
| 1.0.3-alpha | 87 | 9/21/2026 |