Database Reference
In-Depth Information
10.
Right-click the design surface, and select Generate Database Script from Model. Select an
existing database connection or create a new one. In Figure
2-5
, we've opted to create a
new connection to our local machine and to the database EF6Recipes.
Figure 2-5.
Creating a new database connection that will be used by Entity Framework to create a database script that
we can use to create a database from our conceptual model
11.
Click OK to complete the connection properties, and click Next to preview the database
script (see Figure
2-6
). Once you click Finish, the generated script is added to your project.