Syrx.MySql
2.4.0
dotnet add package Syrx.MySql --version 2.4.0
NuGet\Install-Package Syrx.MySql -Version 2.4.0
<PackageReference Include="Syrx.MySql" Version="2.4.0" />
paket add Syrx.MySql --version 2.4.0
#r "nuget: Syrx.MySql, 2.4.0"
// Install Syrx.MySql as a Cake Addin #addin nuget:?package=Syrx.MySql&version=2.4.0 // Install Syrx.MySql as a Cake Tool #tool nuget:?package=Syrx.MySql&version=2.4.0
Syrx.MySql
This project provides Syrx support for MySql. The overall experience of using Syrx remains the same. The only difference should be during dependency registration.
Installation
[!TIP] We recommend installing the Extensions package which includes extension methods for easier configuration.
Source | Command |
---|---|
.NET CLI | dotnet add package Syrx.MySql.Extensions |
Package Manager | Install-Package Syrx.MySql.Extensions |
Package Reference | <PackageReference Include="Syrx.MySql.Extensions" Version="2.4.0" /> |
Paket CLI | paket add Syrx.MySql.Extensions --version 2.4.0 |
However, if you don't need the configuration options, you can install the standalone package via nuget.
Source | Command |
---|---|
.NET CLI | dotnet add package Syrx.MySql |
Package Manager | Install-Package Syrx.MySql |
Package Reference | <PackageReference Include="Syrx.MySql" Version="2.4.0" /> |
Paket CLI | paket add Syrx.MySql --version 2.4.0 |
Extensions
The Syrx.MySql.Extensions
package provides dependency injection support via extension methods.
// add a using statement to the top of the file or in a global usings file.
using Syrx.Commanders.Databases.Connectors.MySql.Extensions;
public static IServiceCollection Install(this IServiceCollection services)
{
return services
.UseSyrx(factory => factory // inject Syrx
.UseMySql(builder => builder // using the MySql implementation
.AddConnectionString(/*...*/) // add/resolve connection string details
.AddCommand(/*...*/) // add/resolve commands for each type/method
)
);
}
Credits
Syrx is inspired by and build on top of Dapper.
MySql support is provided by MySqlConnector.
Product | Versions 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 was computed. 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. |
-
net8.0
- Syrx.Commanders.Databases (>= 2.4.0)
- Syrx.Commanders.Databases.Connectors.MySql (>= 2.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Syrx.MySql:
Package | Downloads |
---|---|
Syrx.MySql.Extensions
This package hosts extension methods to make wiring up support for MySQL databases simpler and easier. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Last release on .NET8.0 exclusively. Next release will include .NET9.0.