DKNet.EfCore.Extensions 13.3.1

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

DKNet.EfCore.Extensions

Model configuration, seeding, change-tracker helpers and sensitive JSON filtering for .NET developers using EF Core.

✨ Why use it?

  • Apply configuration classes and shared entity conventions without repeating assembly scans per context.
  • Reuse named filters, primary-key-aware seeders and sequence metadata across a relational model.
  • Inspect save snapshots and opt individual JSON serializers into sensitive-property filtering.

🚀 Quick Start

Use a .NET 10 console project. Install the package, then replace Program.cs with the example.

dotnet new console -f net10.0 -n EfCoreDemo
cd EfCoreDemo
dotnet add package DKNet.EfCore.Extensions
dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 10.0.12
using Microsoft.EntityFrameworkCore;
using DKNet.EfCore.Extensions.Configurations;

using var connection = new Microsoft.Data.Sqlite.SqliteConnection("Data Source=:memory:");
connection.Open();
var o = new DbContextOptionsBuilder<DemoDb>();
o.UseSqlite(connection).UseAutoConfigModel<DemoDb>();
await using var db = new DemoDb(o.Options);
await db.Database.EnsureCreatedAsync();
var item = new Item { Name = "Coffee" };
db.Add(item);
await db.SaveChangesAsync();
Console.WriteLine(item.Id != Guid.Empty); // True

public sealed class DemoDb(DbContextOptions<DemoDb> options) : DbContext(options)
{
    public DbSet<Item> Items => Set<Item>();
}
public sealed class Item : DKNet.EfCore.Abstractions.Entities.Entity
{
    public string Name { get; set; } = "";
}
public sealed class ItemConfiguration : DefaultEntityTypeConfiguration<Item>
{
    public override void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Item> b)
    {
        base.Configure(b);
        b.Property(x => x.Name).HasMaxLength(80);
    }
}

Run with dotnet run.

Documentation

Guide Read when
Package overview Start with architecture and the end-to-end flow.
Apply model configurations and entity conventions Discover IEntityTypeConfiguration<T> implementations and apply DKNet identity, audit and concurrency conventions through a configuration base.
Apply named filters across matching entities Use IGlobalModelBuilder for model-wide changes and GlobalQueryFilter for per-entity named query filters.
Seed missing rows through EF Core callbacks Discover IDataSeedingConfiguration implementations and run them through EF Core native seeding callbacks.
Read and format a database sequence value Use the enum sequence metadata to register a model sequence and fetch its next value on SQL Server or Npgsql.
Read keys and tracked property values Inspect model keys and original/current entry values without repeating metadata lookups.
Stage new entities found in collection navigations Walk collection navigations from possible updating roots and add discovered new children in one batch.
Retry a save after a concurrency conflict Wrap an async save in a bounded retry loop using IEfCoreExceptionHandler.
Capture a save-time snapshot for hooks Keep the entries and their pre-save states available after EF Core has changed tracking state.
Withhold sensitive properties from unauthorised callers Opt a JsonSerializerOptions instance into role-aware omission for properties declared [SensitiveData].
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 (5)

Showing the top 5 NuGet packages that depend on DKNet.EfCore.Extensions:

Package Downloads
DKNet.EfCore.Hooks

DKNet is an enterprise-grade .NET library collection focused on advanced EF Core extensions, dynamic predicate building, and the Specification pattern. It provides production-ready tools for building robust, type-safe, and testable data access layers, including dynamic LINQ support, LinqKit integration. Designed for modern cloud-native applications, DKNet enforces strict code quality, async best practices, and full documentation for all public APIs. Enterprise-grade .NET library suite for modern application development, featuring advanced EF Core extensions (dynamic predicates, specifications, LinqKit), robust Domain-Driven Design (DDD) patterns, and domain event support. DKNet empowers scalable, maintainable, and testable solutions with type-safe validation, async/await, XML documentation, and high code quality standards. Ideal for cloud-native, microservices, and enterprise architectures.

DKNet.EfCore.DataAuthorization

DKNet is an enterprise-grade .NET library collection focused on advanced EF Core extensions, dynamic predicate building, and the Specification pattern. It provides production-ready tools for building robust, type-safe, and testable data access layers, including dynamic LINQ support, LinqKit integration. Designed for modern cloud-native applications, DKNet enforces strict code quality, async best practices, and full documentation for all public APIs. Enterprise-grade .NET library suite for modern application development, featuring advanced EF Core extensions (dynamic predicates, specifications, LinqKit), robust Domain-Driven Design (DDD) patterns, and domain event support. DKNet empowers scalable, maintainable, and testable solutions with type-safe validation, async/await, XML documentation, and high code quality standards. Ideal for cloud-native, microservices, and enterprise architectures.

DKNet.EfCore.Relational.Helpers

DKNet is an enterprise-grade .NET library collection focused on advanced EF Core extensions, dynamic predicate building, and the Specification pattern. It provides production-ready tools for building robust, type-safe, and testable data access layers, including dynamic LINQ support, LinqKit integration. Designed for modern cloud-native applications, DKNet enforces strict code quality, async best practices, and full documentation for all public APIs. Enterprise-grade .NET library suite for modern application development, featuring advanced EF Core extensions (dynamic predicates, specifications, LinqKit), robust Domain-Driven Design (DDD) patterns, and domain event support. DKNet empowers scalable, maintainable, and testable solutions with type-safe validation, async/await, XML documentation, and high code quality standards. Ideal for cloud-native, microservices, and enterprise architectures.

DKNet.EfCore.Specifications

DKNet is an enterprise-grade .NET library collection focused on advanced EF Core extensions, dynamic predicate building, and the Specification pattern. It provides production-ready tools for building robust, type-safe, and testable data access layers, including dynamic LINQ support, LinqKit integration. Designed for modern cloud-native applications, DKNet enforces strict code quality, async best practices, and full documentation for all public APIs. Enterprise-grade .NET library suite for modern application development, featuring advanced EF Core extensions (dynamic predicates, specifications, LinqKit), robust Domain-Driven Design (DDD) patterns, and domain event support. DKNet empowers scalable, maintainable, and testable solutions with type-safe validation, async/await, XML documentation, and high code quality standards. Ideal for cloud-native, microservices, and enterprise architectures.

DKNet.EfCore.Repos

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.3.1 51 10/26/2026
13.3.0 159 10/22/2026
13.2.8 113 10/22/2026
13.2.7 199 10/11/2026
13.2.6 147 10/10/2026
13.2.5 421 10/2/2026
13.2.4 155 10/1/2026
13.2.3 164 10/1/2026
13.2.2 155 10/1/2026
13.2.1 160 10/1/2026
13.2.0 155 10/1/2026
13.1.3 240 9/21/2026
13.1.2 427 9/18/2026
13.1.1 180 9/18/2026
13.1.0 167 9/18/2026
13.0.2 160 9/18/2026
13.0.1 170 9/18/2026
13.0.0 182 9/18/2026
12.0.0 189 9/17/2026
11.0.0 244 9/17/2026
Loading failed