When working with Entity Framework Core EF Core, there are different strategies for loading related data from the database.
So, how do you load a collection or other related objects?
Here are the main options:
1️⃣ Eager Loading Include
Loads rela...
Entity Framework Core EF Core Global Query Filters allow you to apply filters to queries at the model level so that they automatically apply to all queries involving a specific entity.
This is particularly useful for scenarios like soft deletes, mu...
When working with Entity Framework Core EF Core, queries that involve multiple Include statements can result in a single large query with multiple joins. This can cause performance issues due to data duplication and increased memory usage.
What is A...
Equality is a crucial concept in C#, and handling it efficiently can improve performance and correctness in applications. In this article, we'll focus on IEquatable, why it is preferable over Equals and ==, and how records in C# inherently support va...
Understanding the State Pattern with Calculator
Introduction
The State Pattern allows an object to change its behavior dynamically based on its internal state. It’s a powerful design pattern for handling complex, state-dependent behavior in an or...