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
<PackageReference Include="DKNet.EfCore.Extensions" Version="10.1.10" />
<PackageVersion Include="DKNet.EfCore.Extensions" Version="10.1.10" />
<PackageReference Include="DKNet.EfCore.Extensions" />
paket add DKNet.EfCore.Extensions --version 10.1.10
#r "nuget: DKNet.EfCore.Extensions, 10.1.10"
#:package DKNet.EfCore.Extensions@10.1.10
#addin nuget:?package=DKNet.EfCore.Extensions&version=10.1.10
#tool nuget:?package=DKNet.EfCore.Extensions&version=10.1.10
DKNet.EfCore.Extensions
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 configuration —
UseAutoConfigModel<TContext>()applies everyIEntityTypeConfiguration<T>found in one or more assemblies without manualApplyConfigurationsFromAssemblycalls. DefaultEntityTypeConfiguration<T>— base configuration that wires primary keys (GUID v7 forGuidids), audit columns, and row-version concurrency by convention.- Global query filters —
IGlobalModelBuilder/GlobalQueryFilterfor cross-cutting filters (soft delete, tenant/ownership isolation) applied automatically at model build time. - Data seeding —
IDataSeedingConfiguration/DataSeedingConfiguration<T>, wired into EF Core's native seeding pipeline viaUseAutoDataSeeding. - GUID v7 keys —
GuidV7ValueGeneratorproduces time-ordered GUIDs instead of random ones. - SQL sequences — declare sequences on an enum with
[SqlSequence]/[Sequence], read them withDbContext.NextSeqValue(...)(SQL Server and Npgsql). - Navigation & change-tracking helpers —
IsNewEntity(),AddNewEntitiesFromNavigations(), and relatedEntityEntry/DbContextextensions. - Concurrency-aware
SaveChanges—IEfCoreExceptionHandler+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 | Versions 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. |
-
net10.0
- DKNet.EfCore.Abstractions (>= 10.1.10)
- DKNet.Fw.Extensions (>= 10.1.10)
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.11)
- System.ComponentModel.Annotations (>= 5.0.0)
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 | 36 | 8/22/2026 |
| 10.1.8 | 42 | 8/21/2026 |
| 10.1.7 | 70 | 8/21/2026 |
| 10.1.6 | 63 | 8/21/2026 |
| 10.1.5 | 107 | 8/20/2026 |
| 10.1.4 | 103 | 8/20/2026 |
| 10.1.3 | 110 | 8/19/2026 |
| 10.1.2 | 121 | 8/19/2026 |
| 10.1.1 | 118 | 8/19/2026 |
| 10.0.36 | 142 | 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 |