Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.11 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.11 KB

Dddify

NuGet

A lightweight framework that practices Domain-Driven Design approach for building modern applications on ASP.NET Core.

Install

You should install Dddify with NuGet:

Install-Package Dddify

Or via the .NET Core command line interface:

dotnet add package Dddify

Either commands, from Package Manager Console or .NET Core CLI, will download and install Dddify and all required dependencies. Currently only supports the target framework .NET 7.

Usage

Add the following code to the Program.cs file.

builder.Services.AddDddify(cfg =>
{
    // Sets the DateTimeKind for date and time values.
    cfg.WithDateTimeKind(DateTimeKind.Utc);

    // Sets the type of sequential GUID to be used.
    cfg.WithSequentialGuidType(SequentialGuidType.SequentialAsString);

    // Adds the JSON localization extension
    cfg.UseJsonLocalization();

    // Adds the API result wrapper extension.
    cfg.UseApiResultWrapper();
});