I have migrated a .Net 4.6.1 Mvc Website to Asp.Net.Core.
I have defined validators for my models using ServiceStack.FluentValidation.
In the .Net 4.6.1 wesbite the ModelState validation uses these validators by populating the ModelState.
In AspNetCore this is nog longer the case. I was checking out ServiceStack Mvc Core sample but there was no example of validation.
Could you please tell me how to inject my validators in the ServiceStackControllers?
The package FluentValidation.AspNetCore has a option like this:
services.AddMvc(setup => {
//...mvc setup...
}).AddFluentValidation();
May be a solution like this could be implemented for ServiceStack.FluentValidation as well?