I would like my model binding to be case insensitive.
I tried manipulating a custom model binder inheriting from System.web.Mvc.DefaultModelBinder
, but I can't figure out where to add case insensitivity.
I also took a look at IValueProvider
, but I don't want to reinvent the wheel and find by myself the values.
Any idea ?
Having a
CustomModelBinder
was the solution. As i didn't need complete case insensitivity, I only check if the lowercase version of my property is found.