PinnedAmrelsherMake 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…4 min read·Dec 30, 2023----
PinnedAmrelsherWhen 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…6 min read·Sep 16, 2023--1--1
PinnedAmrelsherMethod Code Smells and RefactoringsThis is the second article from the First one3 min read·May 14, 2022--4--4
PinnedAmrelsherUsing 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.3 min read·Feb 27, 2022--1--1
PinnedAmrelsherRepository Pattern with AutoMapper in .Net CoreFirst Base Entity3 min read·Sep 15, 2021--5--5
AmrelsherImproving 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…3 min read·1 day ago----
AmrelsherDomain 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…4 min read·5 days ago----
AmrelsherFunctional 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…4 min read·Dec 21, 2023----
AmrelsherAdapter Design Pattern with logging in C#Adapter design pattern is a structural design pattern that provides two unrelated interfaces to work together. The most common illustration…3 min read·Aug 5, 2023--1--1
AmrelsherString Interpolation under the hood in C#In this article, we will discuss how string interpolation works under the hood and how InterpolatedStringHandler solves many memory issues…3 min read·Jul 22, 2023----