Prefix for Model State Keys

Topics: ASP.NET MVC
May 17 at 12:28 AM
Hi Guys,

Is there a way to configure to make sure that we don't get the prefix (the parameter name) for the Model State Keys.

Basically, if there's an Invalid Model State, I'm trying to loop through the keys and I find that, the keys, contain the parameter name as the prefix.

This issue has been addressed in Core 1.0 MVC, but am looking for MVC 5.x.

https://github.com/aspnet/Mvc/issues/1694

Thanks,
Ravi