Syrx.Commanders.Databases.Connectors.SqlServer
2.4.0
dotnet add package Syrx.Commanders.Databases.Connectors.SqlServer --version 2.4.0
NuGet\Install-Package Syrx.Commanders.Databases.Connectors.SqlServer -Version 2.4.0
<PackageReference Include="Syrx.Commanders.Databases.Connectors.SqlServer" Version="2.4.0" />
paket add Syrx.Commanders.Databases.Connectors.SqlServer --version 2.4.0
#r "nuget: Syrx.Commanders.Databases.Connectors.SqlServer, 2.4.0"
// Install Syrx.Commanders.Databases.Connectors.SqlServer as a Cake Addin #addin nuget:?package=Syrx.Commanders.Databases.Connectors.SqlServer&version=2.4.0 // Install Syrx.Commanders.Databases.Connectors.SqlServer as a Cake Tool #tool nuget:?package=Syrx.Commanders.Databases.Connectors.SqlServer&version=2.4.0
Syrx.SqlServer
This project provides Syrx support for SqlServer. 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.SqlServer.Extensions |
Package Manager | Install-Package Syrx.SqlServer.Extensions |
Package Reference | <PackageReference Include="Syrx.SqlServer.Extensions" Version="2.4.0" /> |
Paket CLI | paket add Syrx.SqlServer.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.SqlServer |
Package Manager | Install-Package Syrx.SqlServer |
Package Reference | <PackageReference Include="Syrx.SqlServer" Version="2.4.0" /> |
Paket CLI | paket add Syrx.SqlServer --version 2.4.0 |
Extensions
The Syrx.SqlServer.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.SqlServer.Extensions;
public static IServiceCollection Install(this IServiceCollection services)
{
return services
.UseSyrx(factory => factory // inject Syrx
.UseSqlServer(builder => builder // using the SqlServer 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.
SqlServer support is provided by Microsoft.Data.SqlClient.
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
- Microsoft.Data.SqlClient (>= 5.2.2)
- Syrx.Commanders.Databases.Connectors (>= 2.4.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Syrx.Commanders.Databases.Connectors.SqlServer:
Package | Downloads |
---|---|
Syrx.SqlServer
This package provides Syrx support for SQL Server databases. |
|
Syrx.Commanders.Databases.Connectors.SqlServer.Extensions
This package host extension methods to simplify the wiring up and dependency injection of SQL Server support using the IServiceCollection. |
GitHub repositories
This package is not used by any popular GitHub repositories.
BREAKING CHANGE: Changed namespace.
Updated to .NET8.0.