Let's get the models into the API first so that we can create an object and save data in the database. We will use Entity Framework Core (EF Core) version 2.0.2 for this.
User registration
Setting up EF with the API
To use EF Core, the following package is required, which can be downloaded and installed from NuGet Package Manager inside Tools:
Additionally, we need another package named Microsoft.EntityFrameworkCore.Tools. This will help us with creating model classes from the database:
Now, we arrive at the point where we need model classes according to the database tables. The following powershell command can be executed inside the package manager console to create the model class for the Customers table:
Scaffold...