PunkSky.Utilitybelt.EFCore 0.3.0

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

PunkSky.Utilitybelt (.NET)

Utility packages for shared application concerns such as tenant, JSON source generation wiring, EF Core batching/soft delete, HTTP middleware, and Valkey-backed caching/bus support.

Stability

  • This project is pre-v1.0.0 and considered unstable.
  • Expect potential breaking changes in minor/patch releases until v1.0.0.

Packages

Package Purpose
PunkSky.Utilitybelt Core primitives: tenant, soft-delete query helper, JSON resolver registration, DTO/contracts.
PunkSky.Utilitybelt.EFCore EF Core helpers: soft-delete save interceptor and bulk batching extensions.
PunkSky.Utilitybelt.Http ASP.NET Core helpers: tenant middleware/header loader and HTTP JSON configuration.
PunkSky.Utilitybelt.Valkey Valkey/Redis client abstraction and Valkey-backed bus registration.

Install

dotnet add package PunkSky.Utilitybelt
dotnet add package PunkSky.Utilitybelt.EFCore
dotnet add package PunkSky.Utilitybelt.Http
dotnet add package PunkSky.Utilitybelt.Valkey

Quick Start

1) Core package (PunkSky.Utilitybelt)

using PunkSky.Utilitybelt.Json;
using PunkSky.Utilitybelt.Tenant;

builder.Services
    .AddTenant()
    .AddJsonContext(MyJsonContext.Default)
    .AddPkSkyJsonTypeInfoResolver();

2) EF Core helpers (PunkSky.Utilitybelt.EFCore)

using PunkSky.Utilitybelt.Batching;
using PunkSky.Utilitybelt.SoftDelete;
using PunkSky.Utilitybelt.Tags;

builder.AddSoftDelete(); // registers ISaveChangesInterceptor

await dbContext.BulkInsertAsync(items, opts =>
{
    opts.BatchSize = 500;
    opts.TransactionPerBatch = true;
}, cancellationToken: ct);

// In your DbContext:
// protected override void OnModelCreating(ModelBuilder modelBuilder)
// {
//     // Maps TagObject<T, TId> properties to per-entity tags tables.
//     modelBuilder.ConfigureTagObjects();
// }

3) HTTP helpers (PunkSky.Utilitybelt.Http)

using PunkSky.Utilitybelt.Json;
using PunkSky.Utilitybelt.Tenant;

builder.Services
    .AddHttpTenantLoader("tenant")
    .AddHttpJsonOptions();

app.UseTenant();

4) Valkey helpers (PunkSky.Utilitybelt.Valkey)

using PunkSky.Utilitybelt.Bus;
using PunkSky.Utilitybelt.Valkey;
using PunkSky.Utilitybelt.Valkey.Interfaces;

builder.AddValkey(cfg =>
{
    cfg.ConnectionString = "localhost:6379";
    cfg.Prefix = "my-app:";
});

builder.AddValkeyBus();

IValkey cache = app.Services.GetRequiredService<IValkey>();
await cache.Set("sample-key", "value", TimeSpan.FromMinutes(5), CancellationToken.None);

Target Framework

  • net10.0

License

MIT

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.  net11.0 is compatible. 
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.3.0 88 9/1/2026
0.1.0 97 8/24/2026