Demo from this blog post here
Run the following command on the Nuget Package Manager Console
Scaffold-DbContext "Server=localhost,1433;Database=Inventory;User=sa;Password=reallyStrongPwd123;Trusted_Connection=False" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
dotnet restore
dotnet build
dotnet run