-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
Let's begin our exodus from the world of console applications by building a Web API project using ASP.NET Core.
In this chapter, we'll create a small database and associated API to track cards and decks from collectable card games, similar to games such as Magic the Gathering and others. Users will be able to make REST requests to our API in order to create, retrieve, update, or delete (CRUD) individual playing cards, decks of cards, and even register new users.
Although our code in this chapter will not have a user interface, this chapter will help with modern versions of critical skills such as defining a data model using Entity Framework, working with a SQLite database, defining minimal web APIs using ASP.NET, emulating the request/endpoint/response (REPR) pattern, mapping between similar objects using AutoMapper, managing authentication and authorization in ASP.NET, and working...