dotnet / dotnet/EntityFramework.Docs

Clarify the difference in EF between an alternate key and a unique index

Open
#1,000 5 comments 0 reactions 0 assignees View on GitHub
area-entity-mapping
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

I followed this but I cannot update the License Plate because it is a key.
How to make it unique but we still able to correct the License Plate later ?

---
#### Document Details

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

* ID: 19fb72e5-5309-7b90-a95d-514a2c62c50c
* Version Independent ID: 1d7d65a5-f8cb-cd45-3dff-34a87da0df2d
* Content: [Alternate Keys (Unique Constraints) - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/relational/unique-constraints)
* Content Source: [entity-framework/core/modeling/relational/unique-constraints.md](https://github.com/aspnet/EntityFramework.Docs/blob/master/entity-framework/core/modeling/relational/unique-constraints.md)
* Product: **entity-framework**
* GitHub Login: @rowanmiller
* Microsoft Alias: **divega**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.