Problem

How do I work with data on my
website?




                                ?
  Database
House of cards




Visual Studio    WCF Client




Visual Studio   WCF Service
Problem Revised

How do I work with data on my
website where I am not restrained?




                              ?
  Da...
Solution




Expose data differently = REST
What is REST?




It is an architectural style for connecting
           distributed applications
Solution




ADO.NET Data Services is a RESTful
         implementation
Architecture



                      HTML + JavaScript
                           Client
2
Client




                   ...
Step 1
Build the RESTful Service
Layers
                                                HTTP
                                URL
ADO.NET Data Services
    ...
Enhance the Service
Step 2
Build the Client
What have I skipped?




It can do Create/Update/Delete - as easy as
          changing the HTTP method

   Can consume ju...
Want More?

www.sadev.co.za
 The slide deck
 Expanded demo code
www.drp.co.za
 ADO.NET Data Services Cheat Sheet
ADO.NET Data Services
Upcoming SlideShare
Loading in …5
×

ADO.NET Data Services

2,362 views
2,256 views

Published on

Presentation I gave at Microsoft on the 8th May 2009 @ the Dev4Dev's event on ADO.NET Data Services.
It is a level 100 to 200 talk on using it.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,362
On SlideShare
0
From Embeds
0
Number of Embeds
720
Actions
Shares
0
Downloads
67
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

ADO.NET Data Services

  1. 1. Problem How do I work with data on my website? ? Database
  2. 2. House of cards Visual Studio WCF Client Visual Studio WCF Service
  3. 3. Problem Revised How do I work with data on my website where I am not restrained? ? Database
  4. 4. Solution Expose data differently = REST
  5. 5. What is REST? It is an architectural style for connecting distributed applications
  6. 6. Solution ADO.NET Data Services is a RESTful implementation
  7. 7. Architecture HTML + JavaScript Client 2 Client HTTP URL ADO.NET Data Services METHOD LINQ to Entities Entity Framework 1 Server SQL SQL Server
  8. 8. Step 1 Build the RESTful Service
  9. 9. Layers HTTP URL ADO.NET Data Services METHOD http://[site]:[port]/coolmail.svc/Mails(guid'id') LINQ to Entity Framework Entities var result = (from m in Mails where m.Id=new Guid('id') select m).First(); SQL SQL Server SELECT m.Id, m.Sent, m.Subject, m.Sender FROM Mails WHERE m.Id = ‘id’
  10. 10. Enhance the Service
  11. 11. Step 2 Build the Client
  12. 12. What have I skipped? It can do Create/Update/Delete - as easy as changing the HTTP method Can consume just like a WCF service
  13. 13. Want More? www.sadev.co.za The slide deck Expanded demo code www.drp.co.za ADO.NET Data Services Cheat Sheet

×