EntitySpaces.ORM.MySQL.NET 2026.8.0

dotnet add package EntitySpaces.ORM.MySQL.NET --version 2026.8.0
                    
NuGet\Install-Package EntitySpaces.ORM.MySQL.NET -Version 2026.8.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EntitySpaces.ORM.MySQL.NET" Version="2026.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EntitySpaces.ORM.MySQL.NET" Version="2026.8.0" />
                    
Directory.Packages.props
<PackageReference Include="EntitySpaces.ORM.MySQL.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EntitySpaces.ORM.MySQL.NET --version 2026.8.0
                    
#r "nuget: EntitySpaces.ORM.MySQL.NET, 2026.8.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EntitySpaces.ORM.MySQL.NET@2026.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EntitySpaces.ORM.MySQL.NET&version=2026.8.0
                    
Install as a Cake Addin
#tool nuget:?package=EntitySpaces.ORM.MySQL.NET&version=2026.8.0
                    
Install as a Cake Tool

<img src="https://es-banner.paul-netstep.workers.dev?src=nuget_readme" alt="EntitySpaces" width="531" height="268">

EntitySpaces.ORM.MySQL.NET

Part of the modernized EntitySpaces ORM — MySQL / MariaDB data provider. Actively maintained fork with full .NET Framework 4.8 to .NET 10 support.

Supportability

.NET targets .NET Framework 4.8 · .NET 8 · .NET 9 · .NET 10
MySQL / MariaDB MySQL 8.0.14+ (validated with 8.0.28) · MariaDB 10.2+ (validated with 10.2 / 10.6 / 10.11)
Driver MySql.Data 9.x

❤️ Support this project

If this provider has saved you time on a project, support its development — every contribution helps keep it free and maintained.

You can also sponsor via the ❤️ Sponsor link on this NuGet package (powered by Ko-fi).

📋 Help Shape the Roadmap

Take the 3‑minute survey – your feedback keeps EntitySpaces alive and evolving.

🛠️ Requires EntitySpaces Studio

This package provides the SQL Server runtime only — it does not generate code. Entity and Collection classes are generated from your database schema using EntitySpaces Studio, a separate WinForms tool.

  • Get it from the repo: EntitySpaces.Studio
  • Download the most recent .zip — avoid any file tagged -deprecated, that build is kept for reference only.
  • Connect to your database under Settings → Connection, then run the Generated and Custom class templates.

New Features

  • Automatic engine detection — the provider queries SELECT VERSION() on the first call per connection string and caches the result, no configuration required to distinguish MySQL from MariaDB
  • Automatic APPLY → correct SQL strategy per engine: MySQL 8.0.14+ generates native LEFT JOIN LATERAL / JOIN LATERAL, MariaDB 10.2+ generates an equivalent ROW_NUMBER() OVER (PARTITION BY) pattern — same C# query, correct SQL either way
  • Concurrency exception detection — duplicate entry, deadlock, and lock wait timeout all translate to esConcurrencyException
  • Connection pool safety — hasError flag + Transaction.Rollback() in finally, preventing dirty connections from being reused
  • Studio metadata engine now extracts the EXTRA column (VIRTUAL GENERATED / STORED GENERATED) for computed-column detection and TIMESTAMP concurrency detection

Fixes

  • Documented and handled MySQL 8.0's caching_sha2_password default, which requires SslMode=Required (or SslMode=None with AllowPublicKeyRetrieval=True) — connections without this previously failed against default MySQL 8.0 configurations
  • Clarified case-sensitivity handling across platforms — MySQL on Linux is case-sensitive for table/schema names while Windows and MariaDB are not; class generation now documented to always run against the target server to guarantee consistent metadata

Dependency Updates

  • Updated System.Configuration.ConfigurationManager from 10.0.10 to 10.0.11
    • Maintenance release. No API changes affecting EntitySpaces.

Quick Samples

Load a collection:

var customers = new CustomersCollection();
customers.LoadAll();

foreach (var customer in customers)
{
    Console.WriteLine(customer.CompanyName);
}

Create, update, delete an entity:

var employee = new Employees();
employee.FirstName = "Joe";
employee.LastName = "Smith";
employee.Save();               // Create

employee.LastName = "Doe";
employee.Save();               // Update

employee.MarkAsDeleted();
employee.Save();               // Delete

MySQL connection string:

esProviderFactory.Factory = new EntitySpaces.Loader.esDataProviderFactory();

esConnectionElement conn = new esConnectionElement();
conn.Provider = "EntitySpaces.MySqlProvider";
conn.ConnectionString = "Server=myserver;Port=3306;Database=mydb;Uid=myuser;" +
                        "Pwd=mypassword;SslMode=Required;AllowPublicKeyRetrieval=True;";
esConfigSettings.ConnectionInfo.Connections.Add(conn);

More usage examples (joins, paging, transactions, and the full Fluent SQL API): see the main EntitySpaces README.

Generating your entity classes

See Requires EntitySpaces Studio above.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.8.0 107 8/20/2026
2026.7.0 111 7/23/2026
2025.2.0 266 2/5/2025 2025.2.0 is deprecated because it is no longer maintained.
2024.8.0 290 8/19/2024 2024.8.0 is deprecated because it is no longer maintained.

This is an actively maintained fork of the EntitySpaces ORM, built on the original architecture. This release modernizes the runtime for .NET Framework 4.8, .NET 8, .NET 9, and .NET 10.&#10;&#10;• Thread‑safe parameter cache using ConcurrentDictionary (eliminates lock contention).&#10;• Safe connection pool management with automatic rollback on errors (prevents connection leaks).&#10;• Automatic concurrency exception detection and translation.&#10;&#10;MySQL/MariaDB specific improvements:&#10;• LATERAL JOIN translation for OUTER/CROSS APPLY (native LATERAL on MySQL 8.0.14+; ROW_NUMBER emulation on MariaDB 10.2+).&#10;• Automatic server version detection (cached per connection string).&#10;• Safe handling of MySQL/MariaDB concurrency errors (1062, 1213, 1205).&#10;• Compatible with MySQL 8.0+ and MariaDB 10.2+.