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
                    
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="MTS.Data.Dapper" Version="1.0.73" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MTS.Data.Dapper" Version="1.0.73" />
                    
Directory.Packages.props
<PackageReference Include="MTS.Data.Dapper" />
                    
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 MTS.Data.Dapper --version 1.0.73
                    
#r "nuget: MTS.Data.Dapper, 1.0.73"
                    
#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 MTS.Data.Dapper@1.0.73
                    
#: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=MTS.Data.Dapper&version=1.0.73
                    
Install as a Cake Addin
#tool nuget:?package=MTS.Data.Dapper&version=1.0.73
                    
Install as a Cake Tool

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 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. 
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
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
Loading failed