You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throw if table-sharing principal is in TPC and has derived types or the dependent doesn't use TPH
Don't configure table name for abstract types in TPC that have a corresponding DbSet property
Make `ToTable(b => {})` map the entity type to the default table
Fixes#3170Fixes#27608Fixes#27945Fixes#27947
<value>The property '{propertySpecification}' has specific configuration for the table '{table}', but isn't mapped to a column on that table. Remove the specific configuration, or map an entity type that contains this property to '{table}'.</value>
<value>The entity type '{dependentType}' is mapped to '{storeObject}'. However one of its derived types '{derivedType}' is mapped to '{otherStoreObject}'. Hierarchies using table-sharing must be mapped to the same table using the TPH mapping strategy. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.</value>
<value>The element type of the result of '{dbFunction}' is mapped to '{entityType}'. This is not supported since '{entityType}' is part of hierarchy and does not contain a discriminator property.</value>
<value>The underlying reader doesn't have as many fields as expected. Expected: {expected}, actual: {actual}.</value>
840
843
</data>
844
+
<dataname="TpcTableSharing"xml:space="preserve">
845
+
<value>The entity type '{dependentType}' is mapped to '{storeObject}'. However the principal entity type '{principalEntityType}' is also mapped to '{storeObject}' and it's using the TPC mapping strategy. Only leaf entity types in a TPC hierarchy can use table-sharing.</value>
846
+
</data>
841
847
<dataname="TphTableMismatch"xml:space="preserve">
842
848
<value>'{entityType}' is mapped to the table '{table}' while '{otherEntityType}' is mapped to the table '{otherTable}'. Map all the entity types in the hierarchy to the same table, or remove the discriminator and map them all to different tables. See https://go.microsoft.com/fwlink/?linkid=2130430 for more information.</value>
0 commit comments