pink
Uploaded by
21 SLIDES
374 VUES
210LIKES

Introduction to WCF Data Services and RESTful Web Services

DESCRIPTION

Discover the fundamentals of WCF Data Services and REST (Representational State Transfer) through a comprehensive agenda. This informative guide highlights key concepts such as OData, HTTP verbs, data models, and more, providing practical examples in C#. Learn how to create, retrieve, update, and delete records using the DataServiceContext in WCF. Engage with real-world applications demonstrated in flow diagrams and demos, making complex data interactions accessible and understandable.

1 / 21

Télécharger la présentation

Introduction to WCF Data Services and RESTful Web Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript

Playing audio...

  1. http://dhananjaykumar.net DEBUGMODE_ Introducing WCF DATA SERVICE Dhananjay Kumar

  2. Agenda http://dhananjaykumar.net/

  3. What is REST ? REST == Representational State Transfer http://dhananjaykumar.net/

  4. WCF Data Service http://dhananjaykumar.net/

  5. WCF Data Service http://dhananjaykumar.net/

  6. ODATA http://dhananjaykumar.net/

  7. ODATA Consumer and Producer CONSUMER PRODUCER http://dhananjaykumar.net/

  8. WCF Data Service http://dhananjaykumar.net/

  9. HTTP Verbs http://dhananjaykumar.net/

  10. Message format http://dhananjaykumar.net/

  11. Data Model http://dhananjaykumar.net/

  12. Flow diagram http://dhananjaykumar.net/

  13. DEMO http://dhananjaykumar.net/

  14. URI options http://dhananjaykumar.net/

  15. Create Record DataServiceContext context = newDataServiceContext(newUri("http://localhost:7003/WcfDataService1.svc/")); Blogger blog = newBlogger { SpeakerId = 99, SpeakerBlog = "null", SpeakerName = "Mr Bill ", SpeakerTechnology = "Microsoft" }; context.AddObject("Bloggers", blog); context.SaveChanges(); http://dhananjaykumar.net/

  16. Retrieve Record DataServiceContext context = newDataServiceContext(newUri("http://localhost:7003/WcfDataService1.svc/")); SpeakersEntities entities = newSpeakersEntities(newUri("http://localhost:7003/WcfDataService1.svc/")); var result = from r inentities.Bloggersselect r; foreach (var r in result) { Console.WriteLine(r.SpeakerName+ r.SpeakerTechnology); } http://dhananjaykumar.net/

  17. Update Record DataServiceContext context = newDataServiceContext(newUri("http://localhost:7003/WcfDataService1.svc/")); SpeakersEntities entities = newSpeakersEntities(newUri("http://localhost:7003/WcfDataService1.svc/")); BloggerblogtoUpdate = (from r inentities.Bloggerswherer.SpeakerId== 9 select r).FirstOrDefault(); blogtoUpdate.SpeakerTechnology = "C Sharp "; context.AttachTo("Bloggers", blogtoUpdate); context.UpdateObject(blogtoUpdate); context.SaveChanges(); http://dhananjaykumar.net/

  18. Delete Record DataServiceContext context = newDataServiceContext(newUri("http://localhost:7003/WcfDataService1.svc/")); SpeakersEntities entities = newSpeakersEntities(newUri("http://localhost:7003/WcfDataService1.svc/")); BloggerblogtoUpdate = (from r inentities.Bloggers wherer.SpeakerId == 99 select r).FirstOrDefault(); context.AttachTo("Bloggers", blogtoUpdate); context.DeleteObject(blogtoUpdate); context.SaveChanges(); http://dhananjaykumar.net/

  19. WCF Data Service http://dhananjaykumar.net/

  20. With W7Phone http://dhananjaykumar.net/

  21. http://dhananjaykumar.net DEBUGMODE_ Q & A Dhananjay Kumar

More Related