nerdexam
Microsoft

70-516 · Question #102

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an ASP.NET Web application that uses the Entity Framework. The build configuration is set to Release. The application…

The correct answer is C. Use the web.config transform file to modify the connection string for the release configuration. D. Include the source database entry in the Package/Publish SQL tab and update the connection. See the full explanation below for the reasoning.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an ASP.NET Web application that uses the Entity Framework. The build configuration is set to Release. The application must be published by using Microsoft Visual Studio 2010, with the following requirements:

  • The database schema must be created on the destination database

server.

  • The Entity Framework connection string must be updated so that it

refers to the destination database server. You need to configure the application to meet the requirements. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AGenerate the DDL from the Entity Framework Designer and include it in the project.
  • BSet Items to deploy in the Package/Publish Web tab to All files in this Project Folder for the
  • CUse the web.config transform file to modify the connection string for the release configuration.
  • DInclude the source database entry in the Package/Publish SQL tab and update the connection

How the community answered

(26 responses)
  • A
    15% (4)
  • B
    8% (2)
  • C
    77% (20)

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice