Skip to content

Commit

Permalink
Use default schema for TPC tables (#30214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Feb 14, 2023
1 parent 88f308e commit 2814825
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 196 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public static void SetTableName(this IMutableEntityType entityType, string? name
return (string?)schemaAnnotation.Value ?? GetDefaultSchema(entityType);
}

return entityType.BaseType != null
? entityType.GetRootType().GetSchema()
return entityType.BaseType != null && entityType.BaseType.GetTableName() != null
? entityType.BaseType.GetSchema()
: GetDefaultSchema(entityType);
}

Expand Down
Loading

0 comments on commit 2814825

Please sign in to comment.