Is there any way to remove model validation for some properties in a Model in ASP.Net MVC6.
I came across this post https://stackoverflow.com/questions/14008561/is-there-a-strongly-named-way-to-remove-modelstate-errors-in-asp-net-mvc/36359386?noredirect=1#comment60338333_36359386
which suggests using, ModelBindingHelper.ClearValidationStateForModel(Type, ModelStateDictionary, IModelMetadataProvider, string).
But I am unable to find any further help on this.
Can anyone please suggest a working example of removing a model property using ClearValidationStateForModel?