KMTS.Documents.Infrastructure
1.0.3
dotnet add package KMTS.Documents.Infrastructure --version 1.0.3
NuGet\Install-Package KMTS.Documents.Infrastructure -Version 1.0.3
<PackageReference Include="KMTS.Documents.Infrastructure" Version="1.0.3" />
<PackageVersion Include="KMTS.Documents.Infrastructure" Version="1.0.3" />
<PackageReference Include="KMTS.Documents.Infrastructure" />
paket add KMTS.Documents.Infrastructure --version 1.0.3
#r "nuget: KMTS.Documents.Infrastructure, 1.0.3"
#:package KMTS.Documents.Infrastructure@1.0.3
#addin nuget:?package=KMTS.Documents.Infrastructure&version=1.0.3
#tool nuget:?package=KMTS.Documents.Infrastructure&version=1.0.3
KMTS.Documents
A KMTS bounded-context library following the 5-layer DDD/CQRS pattern, built on top of
KMTS.Kernel. Scaffolded from the dotnet new kmts-lib
template — the single source of truth for KMTS library structure (D-01).
What this library is
KMTS.Documents packages one capability as four independently-versioned NuGet layers
(Domain, Application, Infrastructure, Presentation) plus an in-repo NetArchTest
boundary suite. A host application composes it via services.AddDocuments().
Boundary rule
This library references only KMTS.Kernel.*. It must not reference any other KMTS.*
library, must not import WolverineFx (cross-library integration events flow only through
the Kernel seam), and must not use MediatR, Newtonsoft.Json, or Guid primary keys.
These rules are enforced at build time by tests/KMTS.Documents.ArchitectureTests and fail CI
on violation.
Layers
| Layer | Responsibility |
|---|---|
KMTS.Documents.Domain |
Entities (Ulid PKs), value objects, domain events, repository interfaces. No infrastructure. |
KMTS.Documents.Application |
CQRS handlers, validators, marker triad. Source-generated ISender via KMTS.Kernel.Generator. |
KMTS.Documents.Infrastructure |
EF Core configurations (schema documents), IDocumentsDbContext, DbUp scripts, DI + decorator chain. |
KMTS.Documents.Presentation |
Minimal-API endpoints and the AddDocuments() composition entry point. |
How to build
dotnet restore
dotnet build -c Release
dotnet test tests/KMTS.Documents.ArchitectureTests
All projects target net10.0 with all warnings treated as errors, AnalysisMode=All, and
EnforceCodeStyleInBuild. Persistence uses one schema per library (documents) with no
cross-schema joins; the host owns a single shared DbContext implementing IDocumentsDbContext.
| 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
- KMTS.Documents.Application (>= 1.0.3)
- KMTS.Documents.Domain (>= 1.0.3)
- KMTS.Kernel.Infrastructure (>= 1.1.76)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Graph (>= 5.105.0)
- Microsoft.Identity.Web (>= 4.10.0)
- Microsoft.Kiota.Abstractions (>= 1.22.2)
- PnP.Core (>= 1.16.0)
- Scrutor (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KMTS.Documents.Infrastructure:
| Package | Downloads |
|---|---|
|
KMTS.Documents.Presentation
Presentation layer for KMTS.Documents - ASP.NET Core endpoints and the AddDocuments() composition entry point. |
GitHub repositories
This package is not used by any popular GitHub repositories.