nerdexam
Microsoft

70-516 · Question #180

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to model entities. You need to create a database…

The correct answer is D. Use the Generate Database Wizard in Visual Studio. To update the database, right-click the Entity Framework designer surface and choose Generate Database From Model. The Generate Database Wizard produces a SQL script file that you can edit and execute.

Deploying and Troubleshooting Data Access

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to model entities. You need to create a database from your model. What should you do?

Options

  • ARun the edmgen.exe tool in FullGeneration mode.
  • BRun the edmgen.exe tool in FromSSDLGeneration mode.
  • CUse the Update Model Wizard in Visual Studio.
  • DUse the Generate Database Wizard in Visual Studio.

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    12% (4)
  • D
    79% (26)

Explanation

To update the database, right-click the Entity Framework designer surface and choose Generate Database From Model. The Generate Database Wizard produces a SQL script file that you can edit and execute.

Topics

#Entity Framework#database generation#Generate Database Wizard#edmgen.exe

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice