Consider updating DataAnnotationsMetadataProvider to use NullabilityInfoContext #38774
Labels
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
DataAnnotationsMetadataProvider currently infers nullability attributes by manually trawling for and reverse engineering the compiler emitted attributes: https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsMetadataProvider.cs#L476-L505. We should update these to use NullabilityInfoContext given that it exists.
The text was updated successfully, but these errors were encountered: