IValidationAttributeAdapterProvider do not work in asp .net core web api 3.1 #27514
Unanswered
BrandoZhangTest
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using dotnet core 3.1.403, and developing an api.
I want to define Custom Client Validation Rules in Asp.net Core MVC like this article shows.
If I don't set the ErrorMessage in my custommodel like below, it will not fired my custom adapeter provider.
Could any one tell me why?
Model(Which will fired the custom adapeter):
Below is my codes:
My Adapter Provider
My Adapter
My Attribute
Startup.cs
Beta Was this translation helpful? Give feedback.
All reactions