070-516 practicetest exam, IT Exam

Practicetest 070-516 Microsoft cert24

IT Exam,IT Certification,braindump,original questions, question pool,document, braindump, test questions, test question, dumps, test answers, cert24.com, preparation, pdf, certification questions, answers Certification, certification test, practice test, exam dumps, certification training, answers real questions

070-516 TS: Accessing Data with Microsoft .NET Framework 4 our products come with a 100% guarantee of success. We hold this claim because of the highly dedicated and expert team that we have and because of our past performance.

Practicetest 070-516 Microsoft cert24

QUESTION 1
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities.
You need to create a Plain Old CLR Object (POCO) class that can be used with the ObjectContext.CreateObject method to create a proxy.
What should you do?

A. Create a custom data class that has a Protected constructor that does not have parameters.
B. Create a custom data class in which all properties and methods are virtual.
C. Create a custom data class that is abstract.
D. Create a custom data class that is sealed.

Answer: A

Explanation/Reference:
Requirements for Creating POCO Proxies
(http://msdn.microsoft.com/en-us/library/dd468057.aspx)

QUESTION 2
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.)

A. Generate the DDL from the Entity Framework Designer and include it in
the project. Set the action for the DDL to ApplicationDefinition.
B. Set Items to deploy in the Package/Publish Web tab to All files in this Project
Folder for the release configuration.
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 string for the destination database.

Answer: CD

QUESTION 3
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities.
You need to retrieve an entity, and you must ensure that the entity is loaded in a detached state.
Which MergeOption enumeration value should you use to retrieve the entity?

A. PreserveChanges
B. OverwriteChanges
C. AppendOnly
D. NoTracking

Answer: D

Practicetest 070-516 Microsoft cert24

Comments are closed.