Mapping Database First Model with Existing Database

It is a most easy topic of .NET. To over come all the connection problems of ADO.NET we use entity framework.

Many of the beginners like me have doubt of how to update a database when changes are made in it in data base first model.

Here is the solution for it take a look at it and solve your problem.

Select .edmx file in your solution.

Right click on that file and select "UPDATE MODEL FROM DATABASE" option

update model from database

A pop up will be coming like this:

table

Select the new and updated table and click on finish.

In this way we can update data base first entity framework model.

Happy coding guys.