dotnet / dotnet/EntityFramework.Docs
Be explicit about value types not being a good match to entity types
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
> A property is considered a *navigation property* if the type it points to ~can not~ cannot be mapped as a scalar type by the current database provider and …
What does it mean that *a property points to a type*? The straightforward interpretation, that the value of a property is a [Type](https://docs.microsoft.com/en-us/dotnet/api/system.type), is obviously wrong.
Did you mean *its* type … is [enumerable](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1) and the enumerated values cannot be [mapped](https://docs.microsoft.com/en-us/ef/core/modeling/entity-properties#column-data-types)? Because this is what it seems to be. But even if this is the case, the reader does not know yet what *cannot be mapped* means; the previous chapters do not mention that only a few types can be mapped :thinking:
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 24b2b50e-35f8-9e0b-8ce5-840e1ea816e6
* Version Independent ID: 9e0e6e2c-48fa-76c3-3bd9-813a6df22645
* Content: [Relationships - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api%2Cfluent-api-simple-key%2Csimple-key)
* Content Source: [entity-framework/core/modeling/relationships.md](https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/modeling/relationships.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @AndriySvyryd
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.