70-516 試験問題を無料オンラインアクセス
| 試験コード: | 70-516 |
| 試験名称: | TS: Accessing Data with Microsoft .NET Framework 4 |
| 認定資格: | Microsoft |
| 無料問題数: | 196 |
| 更新日: | 2026-05-24 |
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a multi-tier application.
You use Microsoft ADO.NET Entity Data Model (EDM) to model entities.
The model contains entities named SalesOrderHeader and SalesOrderDetail.
For performance considerations in querying SalesOrderHeader, you detach SalesOrderDetail entities from
ObjectContext.
You need to ensure that changes made to existing SalesOrderDetail entities updated in other areas of your
application are persisted to the database.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
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 manage customer and related order records.
You add a new order for an existing customer. You need to associate the Order entity with the Customer
entity.
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You use the ADO.NET Entity Data Model (EDM) to define a Customer entity.
You need to add a new Customer to the data store without setting all the customer's properties. What
should you do?
You use Microsoft Visual Studio 2010 and the Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. The application uses DataContexts to query
the database.
You define a foreign key between the Customers and Orders tables in the database.
You need to ensure that when you delete a customer record, the corresponding order records are deleted.
You want to achieve this goal by using the minimum amount of development effort. What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows
Communication Foundation (WCF) Data Services service.
WCF Data Services uses an authentication scheme that requires an HTTP request that has the following
header format:
GET /Odata.svc/Products(1)
Authorization: WRAP access_token="123456789"
The application includes the following code. (Line numbers are included for reference only.)
01 public class program
02 {
03 Public void GetProducts()
04 {
05 var proxy = new MyDataServiceContext("...");
06 ...
07 }
08 }
You need to ensure that the correct authentication header is present when requests are made by using
MyDataServiceContext.
What should you do?