NPv.Uow.Ef 0.2.0

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

NPv.Uow.Ef

Entity Framework Core implementation of NPv.Uow.Abstractions.

The package coordinates:

  • database commits through NPv.DataAccess.Ef;
  • captured events through NPv.Messaging.Abstractions.Outbox;
  • post-commit enqueueing through NPv.Messaging.Abstractions.Transport.

Status

This package is at an early stage (0.x). Its public API and runtime behavior may change between minor versions.

The current implementation enqueues events after the database commit. It does not provide atomic coordination with a transactional persistent outbox.

Installation

dotnet add package NPv.Uow.Ef

Usage

await using var unitOfWork = new UnitOfWork(
    dbContextProvider,
    outbox,
    eventQueue);

await unitOfWork.CommitAsync(cancellationToken);

Author's Note

This library grew out of my long-standing personal interest in structuring and publishing open source packages. Over time, I’ve revisited and refined earlier internal utilities and ideas, giving them a more consistent shape and preparing them for wider reuse. Along the way, I’ve also taken the opportunity to explore how open source distribution and licensing work in the .NET ecosystem.

It’s a small step toward something I’ve always wanted to try — sharing practical, minimal tools that reflect years of learning, experimentation, and refinement.

Hopefully, someone finds it useful.

Nikolai 😛

⚖️ License

MIT — you are free to use this in commercial and open-source software.

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

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
0.2.0 106 8/17/2026
0.1.0 123 7/30/2026