CHAPTER 15

image

Binding Simple Data Types

In this chapter, I describe the parameter binding system in depth, showing you different ways to obtain values for simple type parameters and explaining how Web API uses a range of different components to get the data values needed to invoke an action method. The features I describe in this chapter are also used to bind complex types using data from the URL, which I explain in Chapter 16. Table 15-1 summarizes this chapter.

Table 15-1. Chapter Summary

Problem

Solution

Listing

Add a new source of data for binding simple action method parameter types.

Implement a custom value provider and value provider factory. ...

Get Expert ASP.NET Web API 2 for MVC Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.