ExecutionEngineMySQL 2025.8.14
dotnet add package ExecutionEngineMySQL --version 2025.8.14
NuGet\Install-Package ExecutionEngineMySQL -Version 2025.8.14
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="ExecutionEngineMySQL" Version="2025.8.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExecutionEngineMySQL" Version="2025.8.14" />
<PackageReference Include="ExecutionEngineMySQL" />
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 ExecutionEngineMySQL --version 2025.8.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ExecutionEngineMySQL, 2025.8.14"
#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 ExecutionEngineMySQL@2025.8.14
#: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=ExecutionEngineMySQL&version=2025.8.14
#tool nuget:?package=ExecutionEngineMySQL&version=2025.8.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DevKit.ExecutionEngine.MySql
Proveedor de acceso a datos para MySQL basado en MySqlConnector, con API síncrona y asíncrona, utilidades de ejecución (query, stored procedure), operaciones en diccionario y soporte de inserción masiva (MySqlBulkCopy) y tablas temporales.
Características
- API consistente:
ExecuteQueryAsTable
,ExecuteQueryAsList<T>
,ExecuteNonQuery
, y variantes asíncronas*Async
. - Soporte para procedimientos almacenados (
ExecuteProcedure*
). - Inserción masiva:
ExecuteBulkInsert
yExecuteBulkInsertToTable
. - Creación/Eliminación de tablas temporales en runtime.
- Configuración por Options Pattern (
MySqlOptions
).
Instalación
- Referencia el proyecto
DevKit.ExecutionEngine.MySql
o el paquete NuGet correspondiente cuando esté disponible.
Namespaces y tipos
- Namespace principal:
DevKit.ExecutionEngine.MySql
- Clase principal:
MySqlDatabaseProvider
- Interfaz:
DevKit.ExecutionEngine.Abstractions.Interfaces.MySql.IMySqlDatabaseProvider
- Options:
DevKit.ExecutionEngine.MySql.Settings.MySqlOptions
Uso con Dependency Injection
using DevKit.ExecutionEngine.Abstractions.Interfaces.MySql;
using DevKit.ExecutionEngine.MySql;
using DevKit.ExecutionEngine.MySql.Settings;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.Configure<MySqlOptions>(opt =>
{
opt.ConnectionString = "Server=localhost;Database=app;User Id=user;Password=***;";
opt.CommandTimeout = 60; // opcional
opt.ConnectionPooling = new ConnectionPoolingOptions { Pooling = true, MinPoolSize = 10, MaxPoolSize = 100 };
opt.BulkCopy = new BulkCopyAdvancedOptions { AllowLoadLocalInfile = true };
});
services.AddSingleton<IMySqlDatabaseProvider, MySqlDatabaseProvider>();
var provider = services.BuildServiceProvider();
var db = provider.GetRequiredService<IMySqlDatabaseProvider>();
// Ejemplo: consulta como lista tipada
var items = db.ExecuteQueryAsList(
"SELECT id, name FROM customers WHERE active = @p0",
r => new { Id = r.GetInt32(0), Name = r.GetString(1) },
p => { var prm = (MySqlConnector.MySqlParameterCollection)p; prm.AddWithValue("@p0", true); }
);
Inserción masiva
// Inserta un DataTable en una tabla existente
provider.ExecuteBulkInsert(dt, "schema.Customers");
// Crea una tabla temporal con el esquema del DataTable y luego inserta
provider.ExecuteBulkInsertToTable(dt, "temp.Customers_Load");
Métodos clave
- Conjunto síncrono:
ExecuteQueryAsTable
,ExecuteQueryAsList<T>
,ExecuteQueryAsDictionary
,ExecuteNonQuery
,ExecuteProcedure*
,BeginTransaction
,CommitTransaction
,RollbackTransaction
. - Conjunto asíncrono:
ExecuteQueryAsTableAsync
,ExecuteQueryAsListAsync<T>
,ExecuteQueryAsDictionaryAsync
,ExecuteNonQueryAsync
,ExecuteProcedure*Async
,ExecuteBulkInsertAsync
,ExecuteBulkInsertToTableAsync
.
Requisitos
- .NET 8.0+
- MySqlConnector
Licencia
MIT. Ver LICENSE
en el repositorio raíz.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- CoreUtilerias (>= 2025.8.19)
- DevKit.ExecutionEngine.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Options (>= 9.0.8)
- MySqlConnector (>= 2.4.0)
-
net7.0
- CoreUtilerias (>= 2025.8.19)
- DevKit.ExecutionEngine.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Options (>= 9.0.8)
- MySqlConnector (>= 2.4.0)
-
net8.0
- CoreUtilerias (>= 2025.8.19)
- DevKit.ExecutionEngine.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Options (>= 9.0.8)
- MySqlConnector (>= 2.4.0)
-
net9.0
- CoreUtilerias (>= 2025.8.19)
- DevKit.ExecutionEngine.Abstractions (>= 1.0.0)
- Microsoft.Extensions.Options (>= 9.0.8)
- MySqlConnector (>= 2.4.0)
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 |
---|---|---|
2025.8.14 | 132 | 8/19/2025 |