Browse Source
Update docs/en/framework/infrastructure/object-to-object-mapping.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/24759/head
Ma Liming
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
} |
|
|
|
```` |
|
|
|
|
|
|
|
|