You create the following WCF Data Service:

public class Northwind : DataService<NorthwindEntities>
{
public static void InitializeService(DataServiceConfiguration config)
{
config.SetEntitySetAccessRule("Customers", EntitySetRights.AllRead);
}
}

You need to retrieve the Customer entity with the key ALFKI.

Which URI should you use?

 Posted by Rajkatie on 9/1/2012 | Category: ADO.NET Interview questions | Views: 1402 | Points: 40
Select from following answers:
  1. http://localhost:12345/Northwind.svc/Customer('ALFKI')
  2. http://localhost:12345/Northwind.svc/Customer/ALFKI
  3. http://localhost:12345/Northwind.svc/ALFKI
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response