1 / 26

Våra sponsorer

Våra sponsorer. REST/ OData /Entity Framework & BizTalk Certification Cram. Mikael Håkansson - Enfo Zystems MVP BizTalk http://blogical.se/blogs/mikael Twitter : @ wmmihaa. Johan Hedberg- Enfo Zystems MVP BizTalk http://blogical.se/blogs/johan Twitter : @ JoHed. Kommande events….

kita
Télécharger la présentation

Våra sponsorer

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


  1. Vårasponsorer

  2. REST/OData/Entity Framework & BizTalk Certification Cram Mikael Håkansson - Enfo Zystems MVP BizTalk http://blogical.se/blogs/mikael Twitter: @wmmihaa Johan Hedberg- Enfo Zystems MVP BizTalk http://blogical.se/blogs/johan Twitter: @JoHed

  3. Kommande events… 23:e Maj BizTalk - EDI & B2B Mikael Håkansson & Anders Wasén 12:e Juni Windows Azure Service Bus- Connectivity and Messaging Alan Smith SommarKollo with Johan Hedberg Helsingborg 26:e Juni, Stockholm 27:e Juli+ 21:a Aug

  4. REST/OData/EntityFramework

  5. Why is this session relevant to me? More devices Platform diversity Applications has become commodity Bandwidth is not infinite Size matters

  6. Agenda What is REST? What is Entity Framework? What is WCF Data Services? What is Odata?

  7. <Disclaimer> Jag avser inte att ljuga, med det jag säger är inte nödvändigtvis sant </Disclaimer>

  8. What is REST? Representational State Transfer Introduced by Roy Fielding in 2000 Not bound to XML Focuses on resources (nouns) Resources are exposed through URI’s Utilizes all HTTP verbs (GET, PUT, POST & DELETE) Supports caching Light weight Interoperable

  9. What is REST? Richardson’s Maturity Model * Level 4 – Hypermedia Level 3 – HTTP Verbs =RESTful Level 2 - Resourses Level 1 - POX *Developed by Leonard Richardson Källa: http://martinfowler.com/articles/richardsonMaturityModel.html

  10. Building a ”REST” Service Level 1 - POX Level 4 – Hypermedia Level 3 – HTTP Verbs Level 2 - Resourses Level 1 - POX

  11. Building a ”REST” Service Level 2 – Using Resources Level 4 – Hypermedia Level 3 – HTTP Verbs Level 2 - Resourses Level 1 - POX

  12. Building a ”REST” Service Level 3 – Using HTTP Verbs Level 4 – Hypermedia Level 3 – HTTP Verbs Level 2 - Resourses Level 1 - POX

  13. What is REST? Using Hypermedia Relationships between entities are defined by links Builds on the web architecture

  14. What is REST? Using Hypermedia Order http://.../Order(23) Customer Orders http://.../Customer(21) Order http://.../Order(24)

  15. What is REST? <Person> <id>16</id> <FirstName>Mikael</FirstName> <LastName>Håkansson</LastName> <Children> <Person> <id>20</id> <FirstName>Linus</FirstName> <LastName>Håkansson</LastName> </Person> <Person> <id>21</id> <FirstName>Pontus</FirstName> <LastName>Håkansson</LastName> </Person> <Person> <id>22</id> <FirstName>Matilda</FirstName> <LastName>Håkansson</LastName> </Person> </Children> </Person> Using Hypermedia Resourses

  16. What is REST? <Person> <idhref="Person(16)">16</id> <FirstName>Mikael</FirstName> <LastName>Håkansson</LastName> <Childrenhref="Person(16)/Children"/> </Person> Using Hypermedia <Persons> <Person> <idhref="Person(20)">20</id> <FirstName>Linus</FirstName> <LastName>Håkansson</LastName> </Person> <Person> <idhref="Person(21)">21</id> <FirstName>Pontus</FirstName> <LastName>Håkansson</LastName> </Person> <Person> <idhref="Person(22)">22</id> <FirstName>Matilda</FirstName> <LastName>Håkansson</LastName> </Person> </Persons>

  17. Building a ”REST” Service Level 3 – Using Hypermedia throught ATOM http://services.odata.org/Northwind/Northwind.svc

  18. What is ADO.NET Entity Framework? an object-relational mapping (ORM) framework for the .NET Framework supports both “Database First” and “Model First” along with “Code First” supports all ADO.NET providers

  19. What is ADO.NET Entity Framework? Building a model using Database-First

  20. What is WCF Data Services? formerly known as ADO.NET Data Services represents Entity Data Model as RESTful services supports both xml and JSON

  21. What is WCF Data Services? Expose the model as a RESTful service Level 4 – Hypermedia Level 3 – HTTP Verbs Level 2 - Resourses Level 1 - POX

  22. What is Odata? Open Data Protocol Query over HTTP

  23. What is Odata? Query the service

  24. Min egen reflektion… 1995 ODBC WinApp (VB6) 2000 COM/SOAP OLEDb ASP 2005 SOAP/WCF ADO.Net ASP.Net + AJAX 2012 2012 OData OData ADO.Net HTML+ JavaScript HTML+ JavaScript

  25. REST ipraktiken (RESTLess) http://wcfdstoolkit.codeplex.com/ Skapavyer! WCF Data Services Toolkit

  26. the end

More Related