MCTS 70-516 Real Questions Pass4Sure, Free PDF Tests Online

Ensurepass
Vendor:Microsoft
Exam Code: 70-516
Exam Name: TS: Accessing Data with Microsoft .NET Framework 4

Latest Microsoft EnsurePass 70-516 Dumps PDF

QUESTION 1
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You manually create your own Context class named AdventureWorksDB that inherits from ObjectContext. You need to use AdventureWorksDB to invoke a stored procedure that is defined in the data source. Which method should you call?

A. Translate
B. ExecuteFunction
C. ExecuteStoreQuery
D. ExecuteStoreCommand

Correct Answer: B

 

QUESTION 2
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 create an entity as shown in the following code fragment.

<EntityType Name=”ProductCategory”>

<Key>

<PropertyRef Name=”ProductCategoryID” />

</Key>

<Property Name=”ProductCategoryID” Type=”int” Nullable=”false”

StoreGeneraedPattern=”Identity” />

<Property Name=”ParentProductCategoryID” Type=”int” />

<Property Name=”Name” Type=”nvarchar” Nullable=”false” MaxLength=”50″ /> …

</EntityType>

You need to provide two entity-tracking fields:

 Rowguid that is automatically generated when the entity is created
 ModifiedDate that is automatically set whenever the entity is updated.

Which code fragment should you add to the .edmx file?

A. B. C. D.

Correct Answer: C

 

QUESTION 3
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 server. You need to ensure that applications authenticate against user information stored in the database before the application is allowed to use the service. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A. Configure IIS to require basic authentication.
B. Configure IIS to allow anonymous access.
C. Configure IIS to require Windows authentication.
D. Enable the WCF Authentication Service.
E. Modify the Data Services service to use a Microsoft ASP.NET membership provider.

Correct Answer: BE

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.