Skip to content

EF Core 7 Rev eng: Missing HasForeignKey when referencing a navigation property with a unique constraint with DataAnnotations on #29418

@ErikEJ

Description

@ErikEJ

File a bug

Using EF Core 7 SQL Server reverse engineering with "Use Data annotations" enabled, the foreignkey configuration is missing.

See description and link to repro schema here: ErikEJ/EFCorePowerTools#1554

@bricelam

EF Core version: 7.0 RC2
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 6
Operating system: Windows

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions