Announcement: Deprecation of RegisterValidator...
methods within calls to AddFluentValidation
#1963
Labels
RegisterValidator...
methods within calls to AddFluentValidation
#1963
Background
We currently provide 2 ways of registering validators with the ASP.NET service provider:
AddFluentValidation()
IServiceCollection
Both approaches do exactly the same thing. We will be deprecating the older approach (via
AddFluentValidation
) in favour of the extension method approachMigration Steps
If you were previously calling one of the
RegisterValidators...
methods insideAddFluentValidation()
you should migrate to calling the equivalentRegisterValidators...
extension method:Before:
After:
The text was updated successfully, but these errors were encountered: