Select from following answers:- NorthwindEntities context = new NorthwindEntities(new Uri("http://localhost:12345/Northwind.svc")); Order order = context.Orders.SingleOrDefault(o => o.OrderID == 7)

- NorthwindEntities context = new NorthwindEntities(new Uri("http://localhost:12345/Northwind.svc ")); var query context.Orders.AddQueryOption("OrderID", 7);
- NorthwindEntities context = new NorthwindEntities( new Uri("http://localhost:12345/Northwind.svc/Orders")); Order order = context.Orders.AddQueryOption("OrderID", 7).FirstOrDefault();
- All Above
Create the NorthwindEntities using the service URI without a relative entities path. Query the Orders property using LINQ.
Create the NorthwindEntities using the service URI without a relative entities path. The URI http://localhost:12345/Northwind.svc/Orders erroneously includes the entities into the path.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator