TinyHelpers.Dapper 3.0.7

dotnet add package TinyHelpers.Dapper --version 3.0.7
NuGet\Install-Package TinyHelpers.Dapper -Version 3.0.7
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="TinyHelpers.Dapper" Version="3.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TinyHelpers.Dapper --version 3.0.7
#r "nuget: TinyHelpers.Dapper, 3.0.7"
#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.
// Install TinyHelpers.Dapper as a Cake Addin
#addin nuget:?package=TinyHelpers.Dapper&version=3.0.7

// Install TinyHelpers.Dapper as a Cake Tool
#tool nuget:?package=TinyHelpers.Dapper&version=3.0.7

Tiny Helpers for Dapper

Lint Code Base CodeQL NuGet Nuget License: MIT

A collection of helper methods and classes for Dapper that I use every day. I have packed them in a single library to avoid code duplication.

Installation

The library is available on NuGet. Just search for TinyHelpers.Dapper in the Package Manager GUI or run the following command in the .NET CLI:

    dotnet add package TinyHelpers.Dapper

Usage

The library provides some Type Handlers to handle data types that are not natively supported by Dapper. They can be explicitly used calling the corresponding Configure methods:

// using TinyHelpers.Dapper.TypeHandlers;

// Automatically serializes and deserializes Person class in JSON string.
JsonTypeHandler.Configure<Person>();

// Handles all string[] properties.
StringArrayTypeHandler.Configure();

// Handles all IEnumerable<string> properties.
StringEnumerableTypeHandler.Configure();

// Handles DateOnly and TimeOnly properties.
DateOnlyTypeHandler.Configure();
TimeOnlyTypeHandler.Configure();

Contribute

The project is constantly evolving. Contributions are welcome. Feel free to file issues and pull requests on the repo and we'll address them as we can.

Warning Remember to work on the develop branch, don't use the master branch directly. Create Pull Requests targeting develop.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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
3.0.7 102 3/26/2024
3.0.6 110 2/27/2024
3.0.5 152 2/14/2024
3.0.4 170 2/12/2024
3.0.2 275 11/21/2023
2.0.19 374 9/4/2023
2.0.18 493 6/29/2023
2.0.17 486 6/14/2023
2.0.16 476 4/10/2023
2.0.15 516 3/27/2023
2.0.13 521 3/15/2023
2.0.12 566 3/1/2023
2.0.10 640 1/11/2023
2.0.9 615 1/9/2023
2.0.3 651 11/30/2022
1.0.42 693 10/31/2022