MTS.Data.Dapper
1.0.73
dotnet add package MTS.Data.Dapper --version 1.0.73
NuGet\Install-Package MTS.Data.Dapper -Version 1.0.73
<PackageReference Include="MTS.Data.Dapper" Version="1.0.73" />
<PackageVersion Include="MTS.Data.Dapper" Version="1.0.73" />
<PackageReference Include="MTS.Data.Dapper" />
paket add MTS.Data.Dapper --version 1.0.73
#r "nuget: MTS.Data.Dapper, 1.0.73"
#:package MTS.Data.Dapper@1.0.73
#addin nuget:?package=MTS.Data.Dapper&version=1.0.73
#tool nuget:?package=MTS.Data.Dapper&version=1.0.73
MTS.Data.Dapper
SQL Server access helpers built on Dapper, targeting .NET Standard 2.1. Includes connection provisioning, asynchronous queries and commands, dependency registration, and execution contexts.
Install
dotnet add package MTS.Data.Dapper
Register services
using Microsoft.Extensions.DependencyInjection;
using MTS.Data.Dapper;
using MTS.Data.Dapper.DependencyExtensions;
services.AddDapperServices(new ConnectionStringOption
{
Value = connectionString
});
Supply the connection string from application configuration and configure Microsoft.Extensions.Logging in the host before resolving the query and command services. The options overload also accepts ConnectionStringOption and EnableLogging.
Query and execute
Inject IDapperQuery and IDapperCUD into your application services:
var rows = await query.TableAsync<MyRow>(
"SELECT Id, Name FROM dbo.Items WHERE Id = @Id", new { Id = itemId });
var affected = await cud.ExecuteAsync(
"dbo.UpdateItem", new { Id = itemId, Name = name });
QueryAsync and QueryOneAsync string overloads call stored procedures; use TableAsync for SQL text. Commands default to stored procedures; pass CommandType.Text for SQL text. Use parameters for data values. Cancellation-token and Dapper CommandDefinition overloads are available.
The package explicitly references a patched System.Security.Cryptography.Pkcs version to override vulnerable transitive versions. See MTS.Data.Dapper.Sample in the repository for a host-based example.
License
Licensed under the MIT License. See the included LICENSE.txt. Dependencies retain their own licences.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Dapper (>= 2.1.89)
- Microsoft.Data.SqlClient (>= 7.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
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 |
|---|---|---|
| 1.0.73 | 90 | 10/15/2026 |
| 1.0.72 | 77 | 10/15/2026 |
| 1.0.71 | 131 | 9/8/2026 |
| 1.0.69 | 123 | 9/4/2026 |
| 1.0.68 | 113 | 9/4/2026 |
| 1.0.67 | 119 | 9/4/2026 |
| 1.0.66 | 116 | 9/2/2026 |
| 1.0.64 | 112 | 9/1/2026 |
| 1.0.63 | 142 | 8/17/2026 |
| 1.0.59 | 149 | 6/2/2026 |
| 1.0.57 | 141 | 5/22/2026 |
| 1.0.56 | 135 | 5/6/2026 |
| 1.0.55 | 118 | 5/6/2026 |
| 1.0.50 | 940 | 1/15/2024 |
| 1.0.49 | 200 | 1/12/2024 |
| 1.0.48 | 216 | 1/4/2024 |
| 1.0.47 | 203 | 1/4/2024 |
| 1.0.46 | 307 | 10/18/2023 |
| 1.0.45 | 230 | 10/17/2023 |
| 1.0.44 | 290 | 7/26/2023 |