-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
In this chapter, we toured the data model and API endpoints of a card tracker API project. While doing so, we saw how Entity Framework lets .NET developers use their existing language and tool competencies to create a data model that EF can then use to scaffold and query a database.
We also saw how minimal APIs provide a concise way of defining API endpoints and how REPR helps developers maintain control of the behavior and signature of their API, even if the underlying data model changes.
Ordinarily, copying from one object to another is a tedious task, but we saw how AutoMapper gives you options for automatically copying common properties between objects using reflection.
We also spent some time exploring specialized tasks related to inheritance and polymorphism in the data model, requests, and responses, and introduced a few solutions to these challenges. Finally, we saw how JWT authentication helps secure APIs and explored the difference between authentication...