SharpCoreDB.Functional 1.6.0

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

SharpCoreDB.Functional

Functional facade for SharpCoreDB built on .NET 10 + C# 14 with zero-dependency functional types.

MVP API

  • Database.Functional() / IDatabase.Functional() entry points
  • GetByIdAsync<T>(...) -> Task<Option<T>>
  • FindOneAsync<T>(...) -> Task<Option<T>>
  • QueryAsync<T>(...) -> Task<Seq<T>>
  • InsertAsync<T>(...) -> Task<Fin<Unit>>
  • UpdateAsync<T>(...) -> Task<Fin<Unit>>
  • DeleteAsync(...) -> Task<Fin<Unit>>
  • CountAsync(...) -> Task<long>

Chaining example

var dbf = database.Functional();

var result = await dbf
    .GetByIdAsync<User>("Users", 42, cancellationToken: ct)
    .Map(opt => opt.Map(user => user with { LastSeenUtc = DateTime.UtcNow }))
    .Map(opt => opt.ToFin("User not found"));

result.Match(
    Succ: _ => Console.WriteLine("updated"),
    Fail: err => Console.WriteLine(err.Message));
Product Compatible and additional computed target framework versions.
.NET 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 (2)

Showing the top 2 NuGet packages that depend on SharpCoreDB.Functional:

Package Downloads
SharpCoreDB.Functional.Dapper

Dapper adapter for SharpCoreDB.Functional with zero-dependency Option/Fin APIs and fluent functional composition for .NET 10 and C# 14.

SharpCoreDB.Functional.EntityFrameworkCore

Entity Framework Core adapter for SharpCoreDB.Functional with zero-dependency Option/Fin APIs and fluent functional composition for .NET 10 and C# 14.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0 82 3/23/2026

v1.6.0: Functional facade with zero-dependency Option/Fin/Seq/Unit types and fluent composition.