diff --git a/src/EFCore.Relational/Extensions/RelationalEntityTypeExtensions.cs b/src/EFCore.Relational/Extensions/RelationalEntityTypeExtensions.cs index 7b7ca39ac61..1f349709a59 100644 --- a/src/EFCore.Relational/Extensions/RelationalEntityTypeExtensions.cs +++ b/src/EFCore.Relational/Extensions/RelationalEntityTypeExtensions.cs @@ -1518,7 +1518,13 @@ public static void SetIsTableExcludedFromMigrations( /// Gets the mapping strategy for the derived types. /// /// The entity type. - /// The mapping strategy for the derived types. + /// + /// The mapping strategy for the derived types, or if no strategy is configured + /// and the entity type has no derived types. Well-known values include + /// , + /// , and + /// , but other values may be returned if configured. + /// public static string? GetMappingStrategy(this IReadOnlyEntityType entityType) => (string?)entityType[RelationalAnnotationNames.MappingStrategy] ?? (entityType.BaseType != null diff --git a/src/EFCore.Relational/Extensions/RelationalTypeBaseExtensions.cs b/src/EFCore.Relational/Extensions/RelationalTypeBaseExtensions.cs index 89b67725b3a..ecf8df98a07 100644 --- a/src/EFCore.Relational/Extensions/RelationalTypeBaseExtensions.cs +++ b/src/EFCore.Relational/Extensions/RelationalTypeBaseExtensions.cs @@ -350,7 +350,14 @@ public static IEnumerable GetMappingFragments( /// Gets the mapping strategy for the derived types. /// /// The type. - /// The mapping strategy for the derived types. + /// + /// The mapping strategy for the derived types, or if no strategy is configured + /// and the entity type has no derived types. Well-known values are + /// , + /// , and + /// , but other values may be returned + /// if a different mapping strategy has been configured. + /// public static string? GetMappingStrategy(this IReadOnlyTypeBase typeBase) => typeBase.ContainingEntityType.GetMappingStrategy();