You are implementing a WCF Data Service client application. You generate WCF Data Service client library classes, including a class that extends DataServiceContext named NorthwindEntities. NorthwindEntities includes a property named Orders that gives Order entities. You need to retrieve Order entities and access the HTTP response code if the request fails.

What should you do?

 Posted by Rajkatie on 9/4/2012 | Category: ADO.NET Interview questions | Views: 1330 | Points: 40
Select from following answers:
  1. Query the Orders collection using a QueryOperationResponse. Check the returned QueryOperationResponse object's Status property.
  2. Query the Orders collection within a try catch block that includes a handler for the DataServiceRequestException exception.
  3. Add an event handler to the NorthwindEntities object's ReadingEntity event.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response