Model First approach in Entity Framework

In model first approach,first create entities,relationships directly on design surface of EDMX
and then generate the database from your model.
The model is edited in Entity Framework designer.
The following steps are needed to create Model first approach:-
Step 1: Add ADO.Net Entity Data Model
Step 2: Select Empty EF designer and click Next button.The designer opens blank model and we can start adding Entities,properties,associations.
Steo 3: In the Properties window, change the Entity Container Name to ModelFirstSampleDBContext.
Step 4: Now add new Entity
Step 5: Select Generate Database from model.
Step 6: You can select existing database or create a new connection by clicking on New Connection
Step 7: To create new Database, click on New Connection
Step 8:Click Finish. This will add *.edmx.sql file in the project. You can execute DDL scripts in Visual Studio by opening .sql file, then right-click and select Execute.
Step 9:Go to the server explorer, you will see that the database is created with tables.
Step 10:Right-click on an empty spot of your model in the EF Designer and select Add Code Generation Item.
Step 11:Select EF 6.x DbContext Generator in middle pane and enter ModelFirstSampleModel in Name field.
Step 12:You will see in your solution explorer that ModelFirstSampleModel.Context.tt and ModelFirstSampleModel.tt templates are generated.