'Create database and generate table with dotnet migration from created models

I'm newer to EF core and I followed an Asp.net core tutorial on Youtube (Presented in French ) Link of the tutorial, this tutorial helped me to create my first Asp.net core application (.NET 5) using MVC and repository design pattern. Unfortunately, this course does not explain how to create the database and how to ensure the migration in EF core?

I've added models, controllers and views and I would like to generate the tables Famille and Produits

Is it possible to generate automatically the database and the tables with EF core?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source