PinnedAmr elshaerImproving Factory Pattern using keyed services in .Net 8This article is an updated version of the last story Improving Factory Pattern using DI in .Net, you read first in, we started with a…Apr 241Apr 241
PinnedAmr elshaerWhen should we prefer OwnsMany over HasMany in EF core?In Entity Framework Core (EF Core), OwnsMany and HasMany are two different methods used to define relationships between entities. They are…Sep 16, 20231Sep 16, 20231
PinnedAmr elshaerMethod Code Smells and RefactoringsThis is the second article from the First oneMay 14, 20224May 14, 20224
PinnedAmr elshaerUsing yield keyword to write better code in c#In this story, I use a simple example to demonstrate our goal, I have a list of students and want to get the teenage Students.Feb 27, 2022Feb 27, 2022
PinnedAmr elshaerRepository Pattern with AutoMapper in .Net CoreFirst Base EntitySep 15, 20215Sep 15, 20215
Amr elshaerMinimizing Risk in Code Refactoring with Feature Flags in Vertical SliceRefactoring critical business logic while maintaining system stability is a common challenge. This article explores how to minimize risks…Nov 7Nov 7
Amr elshaer“Best Practices for Designing DTOs (Data Transfer Objects) in C#”?A lot of people ask what is the better way to generate DTO (data transfer object ), it depends on your source or coming entity that wants…Jul 121Jul 121
Amr elshaerDomain Driven Design: Handling Domain events and Integration events in Deep system.This story will begin with the basic scenario of publishing and handling events in dotnet application using mediator, command…Apr 202Apr 202
Amr elshaerMake your API more ResilientResiliency is the ability to recover from failures and continue to function. It isn’t about avoiding failures but accepting the fact that…Dec 30, 2023Dec 30, 2023
Amr elshaerFunctional Refactoring: Unleashing the Power of Pure FunctionsIn our article, we embark on a journey to enhance the quality of our code by incorporating helpful methods. Our existing codebase leverages…Dec 21, 2023Dec 21, 2023