Closed amyboose closed 1 year ago
I'm trying to make a similar setup and ran into this problem. You should specify DbSet for Parent as well.
Unfortunately, TPC is currently broken with this library, so I wouldn't recommend using it Check https://github.com/efcore/EFCore.NamingConventions/issues/154
@AndriySvyryd should RelationalEntityTypeExtensions.GetDefaultTableName return null for abstract types in a TPC hierarchy? That function seems to already be aware of inheritance mapping (returning the root table name for TPH).
@Dubzer @amyboose I'll be releasing 7.0.2 shortly which should make at least basic TPC work properly (modulo e.g. #154).
@AndriySvyryd should RelationalEntityTypeExtensions.GetDefaultTableName return null for abstract types in a TPC hierarchy? That function seems to already be aware of inheritance mapping (returning the root table name for TPH).
Yes, by default we don't map abstract types in a TPC hierarchy to any table
I've got an exception after using inheritance:
The exception exists just in TPC inheritance. Exception message: