From 1accd614cab8f66e15e436eee99326f531070841 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 4 Mar 2025 11:52:52 +0100 Subject: [PATCH] Tweak tab headings around NRTs in properties page Closes #4967 --- entity-framework/core/modeling/entity-properties.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entity-framework/core/modeling/entity-properties.md b/entity-framework/core/modeling/entity-properties.md index 74c2b74d14..e6b17f6ddf 100644 --- a/entity-framework/core/modeling/entity-properties.md +++ b/entity-framework/core/modeling/entity-properties.md @@ -132,14 +132,14 @@ C# 8 introduced a new feature called [nullable reference types (NRT)](/dotnet/cs The following example shows an entity type with required and optional properties, with the nullable reference feature disabled and enabled: -#### [Without NRT (default)](#tab/without-nrt) - -[!code-csharp[Main](../../../samples/core/Miscellaneous/NullableReferenceTypes/CustomerWithoutNullableReferenceTypes.cs?name=Customer&highlight=5,8)] - #### [With NRT](#tab/with-nrt) [!code-csharp[Main](../../../samples/core/Miscellaneous/NullableReferenceTypes/Customer.cs?name=Customer&highlight=4-6)] +#### [Without NRT](#tab/without-nrt) + +[!code-csharp[Main](../../../samples/core/Miscellaneous/NullableReferenceTypes/CustomerWithoutNullableReferenceTypes.cs?name=Customer&highlight=5,8)] + *** Using nullable reference types is recommended since it flows the nullability expressed in C# code to EF Core's model and to the database, and obviates the use of the Fluent API or Data Annotations to express the same concept twice.