Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,13 @@ public static void SetIsTableExcludedFromMigrations(
/// Gets the mapping strategy for the derived types.
/// </summary>
/// <param name="entityType">The entity type.</param>
/// <returns>The mapping strategy for the derived types.</returns>
/// <returns>
/// The mapping strategy for the derived types, or <see langword="null" /> if no strategy is configured
/// and the entity type has no derived types. Well-known values include
/// <see cref="RelationalAnnotationNames.TphMappingStrategy" />,
/// <see cref="RelationalAnnotationNames.TptMappingStrategy" />, and
/// <see cref="RelationalAnnotationNames.TpcMappingStrategy" />, but other values may be returned if configured.
/// </returns>
public static string? GetMappingStrategy(this IReadOnlyEntityType entityType)
=> (string?)entityType[RelationalAnnotationNames.MappingStrategy]
?? (entityType.BaseType != null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,14 @@ public static IEnumerable<IEntityTypeMappingFragment> GetMappingFragments(
/// Gets the mapping strategy for the derived types.
/// </summary>
/// <param name="typeBase">The type.</param>
/// <returns>The mapping strategy for the derived types.</returns>
/// <returns>
/// The mapping strategy for the derived types, or <see langword="null" /> if no strategy is configured
/// and the entity type has no derived types. Well-known values are
/// <see cref="RelationalAnnotationNames.TphMappingStrategy" />,
/// <see cref="RelationalAnnotationNames.TptMappingStrategy" />, and
/// <see cref="RelationalAnnotationNames.TpcMappingStrategy" />, but other values may be returned
/// if a different mapping strategy has been configured.
/// </returns>
public static string? GetMappingStrategy(this IReadOnlyTypeBase typeBase)
=> typeBase.ContainingEntityType.GetMappingStrategy();

Expand Down
Loading