dotnet / dotnet/EntityFramework.Docs

Missing reference to System.ComponentModel.DataAnnotations.Schema?

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

Description

On a previous page on this thread, it mentions that for using annotations you need to include System.ComponentModel.DataAnnotations. But, for the annotations mentioned in this page, System.ComponentModel.DataAnnotations.Schema is needed. I couldn't find it until I googled around and found the solution in another site.

---
#### Document Details

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

* ID: 6ffdc279-736f-92e4-6de3-cce42342cd6b
* Version Independent ID: d3d4904a-f60d-a0a2-b634-cb12671fa7a2
* Content: [Entity Types - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/entity-types?tabs=data-annotations)
* Content Source: [entity-framework/core/modeling/entity-types.md](https://github.com/dotnet/EntityFramework.Docs/blob/master/entity-framework/core/modeling/entity-types.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @roji
* Microsoft Alias: **avickers**

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.