Posts Tagged

ef core

Inheritance strategies in EF Core

In Entity Framework Core (EF Core), inheritance is a powerful feature that allows you to model a hierarchical relationship between your entities. By default, EF Core uses the “Table per Hierarchy” (TPH) strategy to handle inheritance, but it also supports “Table per Type” (TPT) and “Table per Concrete Type” (TPC) strategies. In this article, we…

Read More