From e6e5a22243d217cd01593265eb5c258f93934562 Mon Sep 17 00:00:00 2001 From: Ma Liming Date: Wed, 28 Jan 2026 14:37:28 +0800 Subject: [PATCH] Update docs/en/framework/infrastructure/object-to-object-mapping.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/en/framework/infrastructure/object-to-object-mapping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/framework/infrastructure/object-to-object-mapping.md b/docs/en/framework/infrastructure/object-to-object-mapping.md index 30995dedf1..39218e7c86 100644 --- a/docs/en/framework/infrastructure/object-to-object-mapping.md +++ b/docs/en/framework/infrastructure/object-to-object-mapping.md @@ -337,7 +337,7 @@ Example: public class PersonDto { public Country? Country { get; set; } // Nullable (can be null) - public City City { get; set; } // Non-nullable (cannot be null) + public City City { get; set; } = default!; // Non-nullable (cannot be null) } ````