Skip to content

Code Lines Already Added #35191

@mthanson8333

Description

@mthanson8333

Description

Under the section 'The Enrollment foreign key and navigation properties', we are asked to add two lines of code to the Enrollment.cs file:

using System.ComponentModel.DataAnnotations;

and

[DisplayFormat(NullDisplayText = "No grade")

These lines of code were added in the Getting Started lesson https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-9.0&tabs=visual-studio under 'The Enrollment entity' section.

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/complex-data-model?view=aspnetcore-9.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/data/ef-rp/complex-data-model.md

Document ID

7a77b058-f005-8d68-ae46-e487c597f18e

Platform Id

aaca2147-b89a-0089-c899-6cd4f439ed68

Article author

@tdykstra

Metadata

  • ID: 634dfb2c-2626-9ec5-35fe-2bd2f27c5e23
  • PlatformId: aaca2147-b89a-0089-c899-6cd4f439ed68
  • Service: aspnet-core
  • Sub-service: data-access

Associated WorkItem - 419400

Metadata

Metadata

Assignees

Labels

Source - Docs.msDocs Customer feedback via GitHub IssueseQUESTeredIdentifies that an issue has been imported into Quest.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions