Skip to content

Warn when uniquifying an FK column name #20435

Closed

Description

Consider the case where there is a candidate FK property by name in the dependent CLR type, but it doesn't work for the FK for some other reason--commonly, that the type of the property is not compatible with the type of the PK property. In this case we currently create a shadow property with a uniquified name--e.g. BlogId1. I assert that this is almost always not what is wanted. We should consider making this a warning, or perhaps even an error by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions