Migrations allow us to provide code to change the database from one version to another. Inorder to this install Microsoft.EntityFrameworkCore.Tools.
- Inorder to create a Migration File execute following command in the Package Manager
> Add-Migration <AnyMeaningfulName>
2.Later to apply migrations to the current database where we point in appsetting.json
> Update-Database
Reference : https://www.c-sharpcorner.com/article/microservice-using-asp-net-core/