dotnet / dotnet/EntityFramework.Docs

Clarify property/field mapping for read-only properties/fields

Open
#1,135 10 comments 4 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

The document explains how to use the NotMapped attribute or the .Ignore fluent method to exclude public properties. How do we include (map) private properites?

---
#### Document Details

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

* ID: 76c24b57-557f-a6d6-16f1-1da50e4744cd
* Version Independent ID: 8bee29c6-58e4-1d07-025e-0bdcead9b5a1
* Content: [Including & Excluding Properties - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/included-properties)
* Content Source: [entity-framework/core/modeling/included-properties.md](https://github.com/aspnet/EntityFramework.Docs/blob/master/entity-framework/core/modeling/included-properties.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.