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
I'm using table per type inheritance model and owned types in the same class hierarchy.
When I generate the migration an extra foreign key constraint will be added to the derived type.
Executing the update database returns an error:
FK_DERIVEDTYPES_DERIVEDTYPES_ID is redundant and its name is incorrect. When I don't use UseUpperCaseNamingConvention() or UseSnakeCaseNamingConvention() the migration is generated properly.
Used packages:
EFCore.NamingConventions Version="8.0.3"
Microsoft.EntityFrameworkCore Version="8.0.3"
Oracle.EntityFrameworkCore Version="8.21.121"
The text was updated successfully, but these errors were encountered:
Hi, just hit same issue with a TPT hierarchy & UseSnakeCaseNamingConvention(), The migration will not generate the redundant constraints with default EF Core casing. Also on 8.0.3.
I'm using table per type inheritance model and owned types in the same class hierarchy.
When I generate the migration an extra foreign key constraint will be added to the derived type.
Executing the update database returns an error:
The model:
Model configuration:
DbContext builder:
Generated migration:
FK_DERIVEDTYPES_DERIVEDTYPES_ID
is redundant and its name is incorrect. When I don't useUseUpperCaseNamingConvention()
orUseSnakeCaseNamingConvention()
the migration is generated properly.Used packages:
The text was updated successfully, but these errors were encountered: