15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

902 ❘ ChaPTer 32 dAtA services<br />

Host: 127.0.0.1.:13617<br />

Content-ID: 18<br />

--changeset_8bc1382a-aceb-400b-9d19-dc2eec0e33b7<br />

Content-Type: application/http<br />

Content-Transfer-Encoding: binary<br />

MERGE http://127.0.0.1.:13617/RestaurantDataService.svc/Menus(2) HTTP/1.1<br />

Host: 127.0.0.1.:13617<br />

Content-ID: 19<br />

Content-Type: application/atom+xml;type=entry<br />

Content-Length: 965<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

2009-08-01T19:17:43.4741882Z<br />

http://127.0.0.1.:13617/RestaurantDataService.svc/Menus(2)<br />

<br />

<br />

true<br />

Lean <strong>and</strong> tender 8 oz. sirloin seasoned perfectly<br />

with our own special seasonings <strong>and</strong> topped with seasoned<br />

butter.<br />

<br />

2<br />

Sirloin Steak<br />

44.0<br />

<br />

<br />

<br />

--changeset_8bc1382a-aceb-400b-9d19-dc2eec0e33b7--<br />

--batch_24448a55-e96f-4e88-853b-cdb5c1ddc8bd--<br />

summary<br />

In this chapter, you’ve seen the features of WCF Data Services. WCF Data Services brings the data model<br />

from the ADO.<strong>NET</strong> Entity Framework across multiple tiers. The technology that this is based on is WCF,<br />

by using connectionless, stateless communication sending AtomPub or JSON queries.<br />

You’ve not only seen the server-side part of this technology but also the client-side part, where change<br />

information is tracked inside a data service context. The client-side part of WCF Data Services implements a<br />

LINQ provider, so you can create simple LINQ requests that are converted to HTTP GET/POST/PUT/DELETE<br />

requests.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!