- Hands-On Full:Stack Web Development with ASP.NET Core
- Tamir Dresher Amir Zuker Shay Friedman
- 107字
- 2021-06-10 19:37:30
Model binding
The data that is carried with an HTTP request that is mapped to parameters that you define in your method's, signature in a process called Model binding. The HTTP request can contain data inside the various parts that compose it:
- Route tokens
- Query strings
- Message body
- Request headers
ASP.NET Core's model binding defines the rules of how to map each value to its correct method parameter.
We already saw how to bind route tokens to method parameters in the Routing section of this chapter, so we won't repeat ourselves, and will instead concentrate on the other types of bindings.
推薦閱讀
- Building E-commerce Sites with VirtueMart Cookbook
- GPS/GNSS原理與應用(第3版)
- 物聯網概論(第2版)
- 信息通信網絡建設安全管理概要2
- 5G技術與標準
- 互聯網+思維與創新:通往未來的+號
- 網絡綜合布線(第2版)
- 一本書讀懂物聯網
- 5G非正交多址接入技術:理論、算法與實現
- Python API Development Fundamentals
- 走近奇妙的物聯網
- Architecting Data:Intensive Applications
- 網絡基本通信約束下的系統性能極限分析與設計
- 現場總線與工業以太網及其應用技術(第2版)
- Learning AWS(Second Edition)