In Visual Studio 2008, you could create a model from a database, but not a database from a model. But with Entity Framework 4.0, you can now create a database from a model, as well, by using a process called model-first design. The following steps first create a model with projects and Employees, and then they create database structures from that model.
Open the corresponding solution (.sln), which you can find in the \VB 2010 Developer Handbook\Chapter 27\ModelFirst folder.
Create a new project of the type Console Application and name it ModelFirst.
Add a new ADO.NET Entity Data Model element to the project, and name it modelFirst.edmx.
In the wizard, select Empty Model, and then click Finish.
You’ll see an empty ...