Custom property name binding

Topics: ASP.NET Web API
Apr 12, 2013 at 12:47 PM
Hello!

When application/json or application/xml post to method I can use DataContract for custom property name binding:
[HttpPost]
public string Method([FromBody]Model request)
{
}

[DataContract]
public class Model
{
    [DataMember(Name="custom_name")]
    public string CustomName { get; set; }
}
How I can use DataContract or something else for application/x-www-form-urlencoded? And what about GET and QueryString?

Thanks!