User registration
Let's get the models into the API firstso that we can create an object and save data in the database. We will useEntity Framework Core(EF Core) version 2.0.2 for this.
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-DbContext "Server=.;Database=FlixOneStore;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Tables Customers
We have provided the connection string in the command so that it connects to our database.
The following are two important parts of the command...