[Discussions] Obsoleting AddDataAnnotationsValidation and replacing with EnableDataAnnotationsValidation
See original GitHub issueThe extension method EditContextDataAnnotationsExtensions.AddDataAnnotationsValidation
is being marked as obsolete. Developers should use the new extension method EditContextDataAnnotationsExtensions.EnableDataAnnotationsValidation
instead.
The only difference between these two APIs is in their return values:
EditContext AddDataAnnotationsValidation(this EditContext editContext) { ... }
IDisposable EnableDataAnnotationsValidation(this EditContext editContext) { ... }
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
AddDataAnnotationsValidation method obsoleted - .NET
The new API, EnableDataAnnotationsValidation , returns an IDisposable whose disposal can be used to remove the data-annotations validation ...
Read more >Obsoleting AddDataAnnotationsValidation and replacing ...
The new API returns an IDisposable whose disposal can be used to remove the data annotations validation support from the EditContext . Reason ......
Read more >How do I enable validation without using the ...
In FluentValidationValidator.cs, create a new validator component named FluentValidationValidator to replace DataAnnonationsValidator, and add the code below to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/dotnet/aspnetcore/issues/31027
Thank you for contacting us. Due to a lack of activity on this discussion issue we’re closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn’t been addressed yet, please file a new issue.
This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue!