Wrap.Id.Dapper 1.2.1

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

Wrap Monads (C#)

GitHub release (latest by date including pre-releases) Nuget GitHub<br/>Test Publish Codacy Badge

Various monads (including Maybe - see here) for C# - to handle null values and exceptions better - including Linq support, chaining, and asynchronous programming. Includes:

  • Either<TLeft, TRight>
  • Monad<T>
  • Id<T> (support for int, uint, long, ulong and Guid value types)
  • Maybe<T> (either: Some<T> or None)
  • Result<T> (either: Ok<T> or Failure)

View the Wiki for documentation.

History

Although this library is at v1, it brings together some mature projects I have been working on since 2019. It started with a Result<T> implementation which morphed into Maybe - which reached v10 in November 2025 - and I figured it would be best to have both.

At the same time I was maintaining a StrongId library - which reached v8.5 in November 2024 - to avoid using primitives for Entity IDs. I realised the similarities between Result<T>, Maybe<T> and Id<T> and decided to bring them all together in one library: Wrap.

Licence

MIT

Copyright (c) 2019-2026 bfren (unless otherwise stated)

Product 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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Wrap.Id.Dapper:

Package Downloads
Jeebs.Data.Adapters.Dapper

Jeebs.Data.Adapters.Dapper library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 0 2/20/2026
1.2.1-beta.1 0 2/20/2026
1.2.0 94 2/17/2026
1.1.0 124 2/8/2026
1.1.0-beta.9 48 2/7/2026
1.1.0-beta.7 47 2/1/2026
1.1.0-beta.6 49 2/1/2026
1.1.0-beta.5 51 1/31/2026
1.1.0-beta.4 47 1/30/2026
1.1.0-beta.3 50 1/29/2026
1.1.0-beta.1 49 1/28/2026
1.0.0 174 1/27/2026
1.0.0-beta.26012610 47 1/27/2026
1.0.0-beta.26012605 49 1/26/2026
1.0.0-beta.26012604 42 1/26/2026
1.0.0-beta.26012514 66 1/25/2026
1.0.0-beta.26012511 42 1/25/2026
1.0.0-beta.26012410 51 1/24/2026
1.0.0-beta.26012406 45 1/24/2026