2
Vote

UpForGrabs: Add Model Binding/Renaming Properties

description

Often when I'm receiving data from another service (in my case, Facebook), the parameters coming in might not be named the way I want them to be so when I model bind, I'd like to be able to rename what's coming in. I can do that for the name of my class using ModelBinderAttribute and passing in a Name. There is currently nothing for renaming properties on a class though. Please add an attribute to do that.

comments

HongmeiG wrote Sep 22, 2012 at 12:45 AM

We could reuse ModelBinderAttribute.Name.

HongmeiG wrote Sep 26, 2012 at 6:08 AM

We could reuse ModelBinderAttribute.Name for renaming the property.