chapter twenty eight
28 Using model binding
This chapter covers
- Understanding the ASP.NET Core model binder and its use in reading data values from HTTP requests
- Understanding the conventions used to find data values during model binding
- Understanding the features used to customize the model binding process and performing model binding manually
Model binding is the process of creating .NET objects using the values from the HTTP request to provide easy access to the data required by action methods and Razor Pages. In this chapter, I describe the way the model binding system works; show how it binds simple types, complex types, and collections; and demonstrate how you can take control of the process to specify which part of the request provides the data values your application requires. Table 28.1 puts model binding in context.