Skip to Main Content
Expert ASP.NET Web API 2 for MVC Developers
book

Expert ASP.NET Web API 2 for MVC Developers

by Adam Freeman
August 2014
Intermediate to advanced content levelIntermediate to advanced
688 pages
18h 5m
English
Apress
Content preview from Expert ASP.NET Web API 2 for MVC Developers

CHAPTER 16

image

Binding Complex Data Types Part I

In Chapter 15, I showed you how to bind simple data types from the request URL using value providers. In this chapter, I describe model binders, which build on the foundation of value providers to allow binding of complex types. I describe the built-in model binders, which bind a comprehensive range of types, in this chapter. I also explain how to create and apply a custom model binder for dealing with types that the built-in binders cannot deal with.

Model binders work only with value providers, meaning that data values are obtained from the URL. It is media type formatters that are responsible for ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET Web API 2: Building a REST Service from Start to Finish

ASP.NET Web API 2: Building a REST Service from Start to Finish

Jamie Kurtz, Brian Wortman
Practical ASP.NET Web API

Practical ASP.NET Web API

Badrinarayanan Lakshmiraghavan
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi

Publisher Resources

ISBN: 9781484200858Purchase book