Road to Republic of IoT - ESP32 Programming and LoRa
WCF Data Services - Office Business Application & iPhone
1. WCF Data Services
for OBA & Mobile Development
UPI, March 13, 2010
Andri Yadi | a@dycode.com
CEO, DyCode | Microsoft MVP
http://geeks.netindonesia.net/blogs/andriyadi
8. REST
• Server-side resources identified by URI
• Access resources over HTTP:
POST Create INSERT
GET Retrieve SELECT
PUT Update UPDATE
DELETE Delete DELETE
• Returned data is “plain”: Atom, plain-XML or
JSON
9. URL
Resources
VERB
(GET, POST, PUT, DELETE)
Resource 1
Client Representation
Resource 2
XML JSON
Server
Status
Representation
XML JSON
10. OData
Open Data Protocol = REST + AtomPub +
Modeling + URI Semantics
An open web protocol for querying and updating data, applies web technologies
such as HTTP, Atom Publishing Protocol (AtomPub) and JSON to provide access to
information from varying sources
11. Data Services Client
HTTP
(Open Data Protocol)
WCF Data Services
Windows Azure SQL Server 2008
Table Storage Reporting Services
15. HTTP
Open Data Protocol (OData)
Hosting/HTTP Listener
Data Services Runtime
Data Access Layer
Entity Custom LINQ
Framework Provider
Relational Other
Database Sources
16. HTTP
http://localhost:1234/MyData.svc/MyEntities(10)
Hosting/HTTP Listener
Data Services Runtime
var q = from e in MyEntities where id = 10 select e;
Data Access Layer
Entity
Framework
SELECT * FROM MyEntity WHERE id = 10
SQL Server