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 underlying reader doesn't have as many fields as expected. Expected: {expected}, actual: {actual}.</value>
840
840
</data>
841
+
<dataname="TpcTableSharing"xml:space="preserve">
842
+
<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>
<value>The entity type '{dependentType}' is mapped to '{storeObject}'. However one of its derived types '{derivedType}' is mapped to '{otherStoreObject}'. Hierarchies using table-sharing cannot be mapped using the TPC mapping strategy.</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