Entityframework.docs: There's a [Key] annotation

Created on 14 Jan 2019  Â·  6Comments  Â·  Source: dotnet/EntityFramework.Docs

The docs need updating, according to the tutorial there is an annotation for PK
https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/complex-data-model?view=aspnetcore-2.2&tabs=visual-studio#create-the-officeassignment-entity


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

closed-duplicate

Most helpful comment

Probably we can make things more discoverable by by:

  1. Renaming the core topic to "Primary Keys" from the current "Keys (primary)"
  2. Renaming the relational topic to "Primary Key Constraint"
  3. Adding pointers to the first one on the latter, and text clarifying that what relational allows configuring (the name of the primary key constraint) is in addition to the things you can always configure on primary keys.

All 6 comments

Thank you. Sorry, I was confused. You can close or delete this.

@divega The separation of core and relational topics does seem to trip people up...

Probably we can make things more discoverable by by:

  1. Renaming the core topic to "Primary Keys" from the current "Keys (primary)"
  2. Renaming the relational topic to "Primary Key Constraint"
  3. Adding pointers to the first one on the latter, and text clarifying that what relational allows configuring (the name of the primary key constraint) is in addition to the things you can always configure on primary keys.

It tripped me up too. The summary for the Relational Database Modeling page (https://docs.microsoft.com/en-us/ef/core/modeling/relational/) makes it sound like core topics are included (or at least, it doesn't specifically say they are excluded)

Duplicate of #862

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CeciAc picture CeciAc  Â·  4Comments

speciesunknown picture speciesunknown  Â·  3Comments

ctaggart picture ctaggart  Â·  3Comments

weitzhandler picture weitzhandler  Â·  4Comments

divega picture divega  Â·  3Comments