RO EN
Applying transactions in the Command handler

Applying transactions in the Command handler

In this article, we explore how to manage transactions in the Command handler of a CQRS and DDD-based application. We will examine the use of IDbContextTransaction from Entity Framework Core and the UnitOfWork alternative to ensure data consistency when business logic involves multiple operations.

Citește mai mult
Persistence through EF Core in the Infrastructure Layer

Persistence through EF Core in the Infrastructure Layer

Separate the responsibility of data persistence in a clean way using EF Core and an abstracted context in the Infrastructure Layer.

Citește mai mult
Clear separation between ReadModel and DomainModel (optional)

Clear separation between ReadModel and DomainModel (optional)

Find out why it is important to separate domain models from read models in a DDD + CQRS application and how this helps you keep the code clear and performant.

Citește mai mult
Mapping with AutoMapper between DTO and Model in .NET

Mapping with AutoMapper between DTO and Model in .NET

Learn how to efficiently map between DTO and domain model using AutoMapper in ASP.NET, for clean API requests and responses.

Citește mai mult
Validation with FluentValidation on Commands in .NET (CreatePostCommandValidator)

Validation with FluentValidation on Commands in .NET (CreatePostCommandValidator)

How to efficiently validate orders in .NET using FluentValidation: clear rules for writing only, without affecting reading.

Citește mai mult
Frontend ↔ Backend Interaction

Frontend ↔ Backend Interaction

Connect React and .NET Core in a modern blog. Learn how to create endpoints, consume APIs, and validate data on both sides.

Citește mai mult
Interaction with external APIs (HttpClient)

Interaction with external APIs (HttpClient)

You learn to use HttpClient in Blazor WebAssembly to consume external APIs, with a concrete example and best practices.

Citește mai mult
Introduction to the React + .NET Core stack: Advantages and use cases

Introduction to the React + .NET Core stack: Advantages and use cases

Find out why the React + .NET Core stack is ideal for modern web applications. Discover the advantages of each technology and the scenarios in which this combination excels.

Citește mai mult