Microsoft MCTS 070-516

Microsoft MCTS 070-516 Microsoft

www.it-pruefungen.ch hilft Ihnen mit hochwertigenUnterlagen und Software, die Fragen und Antworten Zertifizierungsprüfung zu bestehen. Mit Hilfe der www.it-pruefungen.ch sind Sie sicher, die Zertifizierung mit einem hohen Punkt zu bestehen und den Erfolg im IT-Bereich erobern.

070-516 TS: Accessing Data with Microsoft .NET Framework 4 Vorbereitung für IT-Prüfung hat eine Reihe von spezialisierten Zertifizierungsprüfung im Zusammenhang mit einem bestimmten Gebiet, und so ist die Wahl der richtigen Training Produkt ist sehr wichtig.

Microsoft MCTS 070-516 Microsoft

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

Microsoft MCTS 070-516 Microsoft

Die Kommentarfunktion ist geschlossen.