This video demonstrates how to use implicit and explicit model binding with POCO objects in ASP.NET Core 7. You will learn how to create a POCO object, bind it to an action method parameter, and access its properties in the code. You will also learn about the different implicit and explicit binding options available, and how to choose the right option for your needs.
Key takeaways
Implicit model binding will evaluate the first available source for data: route data, query string parameters, form fields, and form data.
If the parameter is not found in any of the sources and the parameter is not nullable, you may receive a binding error.
Model binding will automatically create an object of the model, whether through implicit or explicit binding.
GitHub: https://github.com/dmproj/NET-Core-7-...
Project: https://github.com/dmproj/net_core_en...
ASP.NET Core 7 Full Course and Entity Framework Project.