How to Automatically Map TPH Derived Classes in EF Core?
问题 By default, EF6 would map a base abstract class and it's derived classes for Table Per Hierarchy (TPH). EF Core no longer follows this logic and requires derived classes to be opted in. The documentation states: By convention, types that are exposed in DbSet properties on your context are included in the model as entities. Entity types that are specified in the OnModelCreating method are also included, as are any types that are found by recursively exploring the navigation properties of other