-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
This chapter requires .NET 10 and an IDE you're comfortable working with.
If you're working with Visual Studio, you will also need to make sure the ASP.NET and web development workload is installed using the Visual Studio Installer. Additionally, you'll need to install the .NET Entity Framework command-line tool if it's not already installed on your system. You can do this by running the following terminal command:
dotnet tool install –global dotnet-ef
You can find the completed code for this chapter in the Chapter5 folder of the https://github.com/PacktPublishing/CSharp-Projects repository.
To recreate the database, you'll need to run Entity Framework migrations by running the following command in the terminal from the CardTrackerWebApi directory in the Chapter5 folder:
dotnet ef database update
This will run all migrations, create your database if it is not present, populate the database schema, and insert...