Hi,
I am working on a project, where the models will be generated from EFcore with data annotations in the Model classes since we need the default data annotation for the login system from Identity.
With DataAnnotationsValidator we are displaying the validation error message.
However the default validation displayed shows the internal field name for Validation error.
Hence I have created a partial class with custom validation error message. Because we dont want to make changes to the Models generated from EF core to be manually modified every time the class is generated.
I am able to use my custom validation from partial class. However, only default validation is performed first and then custom validation.
What are the other possible options to implement custom validation from partial classes and not actual models?