User-2054057000 posted
In short Model First Approach is when you create the classes in your Application and these classes represents the tables of the database.
Example If your application has 2 classes called Employees &
Departments. Then your database will have at least these 2 tables called
Employees & Departments.
Now The most important thing:
In Model First Approach you do not create the database manually, instead you tell your application to create the database for you based on the classes (Employees &
Departments) which you have in your application. This is done through Migration commands.
I hope you will find my short answer quite useful.
Also refer these 2 tutorials:
- Code - First Approach in Entity Framework Core
- EF Core Migrations