The two workflows to use Entity Framework are database first and code first.
The traditional way is to design database tables first and then have Entity Framework generate the corresponding domain classes. This approach is called database first or DB first.
The other way is to start with domain classes and have Entity Framework generate the database tables for us. This approach is called code first.
Personally, I prefer code first over database first for a few reasons:
There are misconceptions about code first, such as it only being useful with new projects or not giving full control over the database. However, code first can be used with existing databases and does provide full control. Educating others about the benefits of code first is important for successful development.
As a developer, it's important to be open to learning new things and staying updated with the latest practices. In this course, the focus is on code first workflow to build the database.
If you want to learn more about DB first or code first in detail, it is recommended to take the Entity Framework course on Udemy, which covers these topics extensively.
Next, we will look at code first migrations.
video txt