DKNet.EfCore.Extensions 10.1.10

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

DKNet.EfCore.Extensions

NuGet NuGet Downloads .NET License

The registration/glue package for the DKNet EF Core stack: automatic entity configuration discovery, global query filters, data seeding, GUID v7 keys, SQL sequences and the SnapshotContext type shared by DKNet.EfCore.Hooks, DKNet.EfCore.Events, DKNet.EfCore.AuditLogs and DKNet.EfCore.DataAuthorization.

Features

  • Auto entity configurationUseAutoConfigModel<TContext>() applies every IEntityTypeConfiguration<T> found in one or more assemblies without manual ApplyConfigurationsFromAssembly calls.
  • DefaultEntityTypeConfiguration<T> — base configuration that wires primary keys (GUID v7 for Guid ids), audit columns, and row-version concurrency by convention.
  • Global query filtersIGlobalModelBuilder / GlobalQueryFilter for cross-cutting filters (soft delete, tenant/ownership isolation) applied automatically at model build time.
  • Data seedingIDataSeedingConfiguration / DataSeedingConfiguration<T>, wired into EF Core's native seeding pipeline via UseAutoDataSeeding.
  • GUID v7 keysGuidV7ValueGenerator produces time-ordered GUIDs instead of random ones.
  • SQL sequences — declare sequences on an enum with [SqlSequence]/[Sequence], read them with DbContext.NextSeqValue(...) (SQL Server and Npgsql).
  • Navigation & change-tracking helpersIsNewEntity(), AddNewEntitiesFromNavigations(), and related EntityEntry/DbContext extensions.
  • Concurrency-aware SaveChangesIEfCoreExceptionHandler + SaveChangesWithConcurrencyHandlingAsync.

Installation

dotnet add package DKNet.EfCore.Extensions

Quick Start

using Microsoft.EntityFrameworkCore;
using DKNet.EfCore.Extensions.Configurations;

public class AppDbContext(DbContextOptions<AppDbContext> options) : DbContext(options)
{
    public DbSet<Product> Products => Set<Product>();
}

public class ProductConfiguration : DefaultEntityTypeConfiguration<Product>
{
    public override void Configure(EntityTypeBuilder<Product> builder)
    {
        base.Configure(builder); // Id (GuidV7 if Guid), audit columns, concurrency token
        builder.Property(p => p.Name).HasMaxLength(255).IsRequired();
    }
}

// Registration
services.AddDbContext<AppDbContext>(options =>
    options.UseSqlServer(connectionString)
           .UseAutoConfigModel<AppDbContext>()          // scan + apply configurations
           .UseAutoDataSeeding([typeof(AppDbContext).Assembly])); // optional: run seed data

Full feature guide, composition with Hooks/Events/AuditLogs/DataAuthorization, and gotchas: https://github.com/baoduy/DKNet/blob/dev/docs/EfCore/DKNet.EfCore.Extensions.md

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 (4)

Showing the top 4 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.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
10.1.10 0 8/22/2026
10.1.9 0 8/22/2026
10.1.8 35 8/21/2026
10.1.7 64 8/21/2026
10.1.6 54 8/21/2026
10.1.5 98 8/20/2026
10.1.4 98 8/20/2026
10.1.3 101 8/19/2026
10.1.2 112 8/19/2026
10.1.1 116 8/19/2026
10.0.36 136 8/18/2026
10.0.35 154 8/5/2026
10.0.34 148 8/5/2026
10.0.33 161 8/4/2026
10.0.32 387 8/3/2026
10.0.31 175 7/21/2026
10.0.30 167 7/21/2026
10.0.29 722 6/22/2026
10.0.27 245 5/22/2026
10.0.26 173 5/19/2026
Loading failed