Dddify 1.0.0
dotnet add package Dddify --version 1.0.0
NuGet\Install-Package Dddify -Version 1.0.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="Dddify" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dddify" Version="1.0.0" />
<PackageReference Include="Dddify" />
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 Dddify --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Dddify, 1.0.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 Dddify@1.0.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=Dddify&version=1.0.0
#tool nuget:?package=Dddify&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Dddify
Dddify is a lightweight DDD integration framework for modern ASP.NET Core applications.
It provides reusable building blocks for domain modeling, application orchestration, messaging, validation, dependency registration, timing, localization, API result wrapping, and Entity Framework Core persistence integration.
Installation
dotnet add package Dddify
Capabilities
- Domain primitives: aggregate roots, entities, value objects, domain events, auditing contracts, soft delete, and concurrency stamp support.
- Application messages: commands, queries, handlers, validators, and domain event handlers based on MediatR.
- Dependency registration: convention-based registration through Scrutor and explicit dependency markers.
- EF Core integration: DbContext registration, unit of work, repository base class, model conventions, save interceptors, and domain event dispatching.
- ASP.NET Core integration: current user access, JSON localization, API result wrapping, and exception response mapping.
- Timing support: current time, current timezone, timezone resolution, time conversion, and audit time source configuration.
Quick Start
Register Dddify in the ASP.NET Core startup code:
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDddify(cfg =>
{
cfg.AddTiming();
cfg.AddCurrentUser();
cfg.AddLocalization();
cfg.AddApiResultWrapping();
cfg.AddDbContextWithUnitOfWork<ApplicationDbContext>(options =>
{
options.UseSqlite(builder.Configuration.GetConnectionString("Default"));
});
});
Example Command
public sealed record CreateTodoCommand(string Title) : ICommand<Guid>;
public sealed class CreateTodoCommandHandler(ITodoRepository todoRepository)
: ICommandHandler<CreateTodoCommand, Guid>
{
public async Task<Guid> Handle(CreateTodoCommand command, CancellationToken cancellationToken)
{
var todo = new Todo(Guid.NewGuid(), command.Title);
await todoRepository.AddAsync(todo, cancellationToken);
return todo.Id;
}
}
Links
- Documentation: https://dddify.net
- Source code: https://github.com/esofar/dddify
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- FluentValidation (>= 12.1.1)
- Mapster (>= 10.0.7)
- MediatR (>= 12.5.0)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Scrutor (>= 7.0.0)
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 |
|---|---|---|
| 1.0.0 | 62 | 5/6/2026 |