Models

A model contains the logical data structures as well as the data of your applications, independent of their visual representations. In the context of ASP.NET Core 3, it also supports localization and validation, as you have seen in the previous chapters.

Models can be created in the same project with your views and controllers or in a dedicated project for better organization of our solution project.

In ASP.NET Core 3, scaffolding uses models to auto-generate views. Furthermore, models can be used to bind forms to entity objects automatically. In terms of data persistence, various data storage targets can be used. In the case of databases, you should be using Entity Framework Core's object-relational mapper (ORM), which will be introduced in Chapter 9Accessing Data Using Entity Framework Core 3. Models are serialized when we work with web APIs.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.110.106