Skip to content

Add information about using foreign key properties to control relationships #1926

Closed

Description

The Relationship section is missing information about controlling a relationship by a foreign key property when using convention based model configuration:
If a non-nullable foreign key property exists, the relation requires a principal entity, and the deletion behaviour is set to Cascade.
If no or a nullable foreign key property exists, the relation requires no principal entity, and the deletion behaviour is set to Restrict.

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions