SlideShare a Scribd company logo
Mainframe
Computers
Thick Clients Thin Clients
Mobile Apps Browsers Web Apps
They all understand Internet world means how to make HTTP request and
read HTTP response. In simple words you can browse Internet here
Dhananjay Kumar
Telerik
Data as Service
Agenda
• Your Presenter
WCF Data
Service
ODATA
ADO.Net
Data
Service
Project
Astoria
http://dhananjaykumar.net/
WCF Data
Service
ODATA
ADO.Net
Data
Service
Project
Astoria
Introduction to WCF Data Service
Demo Creating your first WCF Data Service
URI Options and Server side paging
Demo performing CRUD from Managed Application
Q/A
Agenda
It is a web Protocol
It is used for updating and querying data
It uses HTTP protocol
It uses ATOM and JSON web message formats
It uses URI for resource identification (REST)
OData is released under the Open Specification Promise to allow anyone to
freely interoperate with OData implementations.
OData
Application :SharePoint 2010,
IBM Web Sphere , SSRS, SQL
Azure , Azure table
Live Services : facebook
,Pluralsight , vanGuide ,
TechEd2010, NerdDinner
Browsers , ODATA Explorer , Excel
2010 , LINQPAD, SesName Odata
Browser
Client Librarries : W7Phone ,
Javascript , .Net , PHP
PRODUCER CONSUMER
12/19/2010 http://dhananjaykumar.net/
OData Consumer and Producer
WCF Data Services Framework Consists of a
combination of patterns and libraries that enable the
creation and consumption of data services for the web.
The goal of WCF DATA Service is to facilitate the
creation of Flexible data Services that are naturally
integrated with the web
WCF Data Service exposes CRUD operation as REST
service using ODATA protocol
WCF Data Service
• CREATE Data in Table
HTTP POST
• RETERIVE Data from table
HTTP GET
• UPDATE Data in table
HTTP PUT
• DELETE Data in table
HTTP DELETE
HTTP Verbs
Message
Format
JSON ATOM
JSON for
AJAX clients
ATOM for
any type of
clients
Message Format
Custom Data Model
LINQ to SQL Class
ADO.Net Entity Model
Data Model
Flow Diagram
Demo
12/19/2010 http://dhananjaykumar.net/
DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/"));
Blogger blog = new Blogger
{
SpeakerId = 99,
SpeakerBlog = "null",
SpeakerName = "Mr Bill ",
SpeakerTechnology = "Microsoft"
};
context.AddObject("Bloggers", blog);
context.SaveChanges();
Create Record
DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/"));
SpeakersEntities entities = new SpeakersEntities(new Uri("http://localhost:7003/WcfDataService1.svc/"));
var result = from r in entities.Bloggers select r;
foreach (var r in result)
{
Console.WriteLine(r.SpeakerName +
r.SpeakerTechnology);
}
Retrieve Record
DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/"));
SpeakersEntities entities = new SpeakersEntities(new Uri("http://localhost:7003/WcfDataService1.svc/"));
Blogger blogtoUpdate = (from r in entities.Bloggers where
r.SpeakerId == 9 select
r).FirstOrDefault();
blogtoUpdate.SpeakerTechnology = "C Sharp ";
context.AttachTo("Bloggers", blogtoUpdate);
context.UpdateObject(blogtoUpdate);
context.SaveChanges();
Update Record
DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/"));
SpeakersEntities entities = new SpeakersEntities(new Uri("http://localhost:7003/WcfDataService1.svc/"));
Blogger blogtoUpdate = (from r in entities.Bloggers
where r.SpeakerId == 99 select
r).FirstOrDefault();
context.AttachTo("Bloggers", blogtoUpdate);
context.DeleteObject(blogtoUpdate);
context.SaveChanges();
Delete Record
Data asservice

More Related Content

PPTX
CodeMash 2013 Microsoft Data Stack
PPTX
Programming SharePoint 2010 with Visual Studio 2010
DOC
Web services
PPT
PDF
CenitHub: Introduction
PPT
Ds
PPT
PPTX
Suga ajax training
CodeMash 2013 Microsoft Data Stack
Programming SharePoint 2010 with Visual Studio 2010
Web services
CenitHub: Introduction
Ds
Suga ajax training

What's hot (20)

PPT
PDF
Collector Web Services
DOCX
Web 10mca556 syllabs
PPT
SQL Server 2008 Positioning
PPTX
Wcf for the web developer
PDF
Domain-Driven Data at the O'Reilly Software Architecture Conference
PDF
Web services
DOC
Web service
PPT
Web service
PPT
Web logic classes in mumbai
PPT
2310 b 13
RTF
Bdc Screens
PPTX
Introductiontowebarchitecture 090922221506-phpapp01
PPT
No Silverlight Application Is an Island of Richness
PPTX
Web Services
PPTX
Web Services - A brief overview
PPT
Web services
PPTX
Silverlight & WCF RIA
PPT
2310 b 17
Collector Web Services
Web 10mca556 syllabs
SQL Server 2008 Positioning
Wcf for the web developer
Domain-Driven Data at the O'Reilly Software Architecture Conference
Web services
Web service
Web service
Web logic classes in mumbai
2310 b 13
Bdc Screens
Introductiontowebarchitecture 090922221506-phpapp01
No Silverlight Application Is an Island of Richness
Web Services
Web Services - A brief overview
Web services
Silverlight & WCF RIA
2310 b 17
Ad

Viewers also liked (7)

PDF
Petr Koubsky: Pocitace nezmenily ekonomiku, ale spolecnost
PPT
RIES voting key interface
PPTX
Pedagog Stockholm webinar 17 feb 2011
PPSX
Nette on the Road - Hradec Králové
PPTX
PPTX
TV 2 Sumo Helge Høibraaten
PDF
FEI - Nette framework
Petr Koubsky: Pocitace nezmenily ekonomiku, ale spolecnost
RIES voting key interface
Pedagog Stockholm webinar 17 feb 2011
Nette on the Road - Hradec Králové
TV 2 Sumo Helge Høibraaten
FEI - Nette framework
Ad

Similar to Data asservice (20)

PPTX
WCF Data Services - Bandung Charity Event - 2010
PPTX
Building nTier Applications with Entity Framework Services (Part 2)
PPTX
Building nTier Applications with Entity Framework Services (Part 2)
PPT
Ado.Net Data Services (Astoria)
DOCX
R2 microsoft ado.net data services datasheet
PPTX
OData – Super Cola W3
PPT
World Wide Web(WWW)
PPT
Developing for Astoria: ADO.NET Data Services
PPTX
Practical OData
PPT
Introduction To Dot Net Siddhesh
DOCX
58615764 net-and-j2 ee-web-services
PPT
DEV301- Web Service Programming with WCF 3.5
PPTX
Building RESTfull Data Services with WebAPI
PPT
Building RESTful Applications with OData
PPTX
Ntg web services
PPTX
ADO .NET by Sonu Vishwakarma
PPT
ADO.NET Data Services
PPTX
WCF from the web developer
PPT
Time for a REST - .NET Framework v3.5 & RESTful Web Services
PPTX
Xml web services
WCF Data Services - Bandung Charity Event - 2010
Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)
Ado.Net Data Services (Astoria)
R2 microsoft ado.net data services datasheet
OData – Super Cola W3
World Wide Web(WWW)
Developing for Astoria: ADO.NET Data Services
Practical OData
Introduction To Dot Net Siddhesh
58615764 net-and-j2 ee-web-services
DEV301- Web Service Programming with WCF 3.5
Building RESTfull Data Services with WebAPI
Building RESTful Applications with OData
Ntg web services
ADO .NET by Sonu Vishwakarma
ADO.NET Data Services
WCF from the web developer
Time for a REST - .NET Framework v3.5 & RESTful Web Services
Xml web services

More from Dhananjay Kumar (20)

PPTX
Slides of webinar Kendo UI and Knockout.js
PPTX
Nodejsvs
PPTX
PPTX
No SQL with Kendo UI
PPTX
Patterns in JavaScript
PPTX
Presenter deck icenium hol
PPTX
Bringbestoinyou
PPTX
Java script
PPTX
Windows azure mobile service
PPTX
Test studiowebinaraugcodedstep
PPTX
Functions and Objects in JavaScript
PPTX
Create Hybrid Mobile Application with Icenium and Kendo UI Mobile
PPTX
Cloud Based Enterprise Apps using Everlive
PPTX
A Look into Automated Web UI Test
PPTX
Windows phone 8 app using Kendo UI
PPTX
Cross platformmobileapp
PPTX
Windows aazuremobileservices
PPTX
Rad controlforwindows25thapril
PPTX
WCF for begineers
PPTX
Windows storemindcrcaker23rdmarch
Slides of webinar Kendo UI and Knockout.js
Nodejsvs
No SQL with Kendo UI
Patterns in JavaScript
Presenter deck icenium hol
Bringbestoinyou
Java script
Windows azure mobile service
Test studiowebinaraugcodedstep
Functions and Objects in JavaScript
Create Hybrid Mobile Application with Icenium and Kendo UI Mobile
Cloud Based Enterprise Apps using Everlive
A Look into Automated Web UI Test
Windows phone 8 app using Kendo UI
Cross platformmobileapp
Windows aazuremobileservices
Rad controlforwindows25thapril
WCF for begineers
Windows storemindcrcaker23rdmarch

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Encapsulation theory and applications.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
August Patch Tuesday
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
A Presentation on Artificial Intelligence
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Mushroom cultivation and it's methods.pdf
Empathic Computing: Creating Shared Understanding
SOPHOS-XG Firewall Administrator PPT.pptx
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
1. Introduction to Computer Programming.pptx
Heart disease approach using modified random forest and particle swarm optimi...
Encapsulation theory and applications.pdf
OMC Textile Division Presentation 2021.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Programs and apps: productivity, graphics, security and other tools
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
August Patch Tuesday
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Machine learning based COVID-19 study performance prediction
A Presentation on Artificial Intelligence
A comparative study of natural language inference in Swahili using monolingua...
Group 1 Presentation -Planning and Decision Making .pptx
Mushroom cultivation and it's methods.pdf

Data asservice

  • 1. Mainframe Computers Thick Clients Thin Clients Mobile Apps Browsers Web Apps They all understand Internet world means how to make HTTP request and read HTTP response. In simple words you can browse Internet here
  • 6. Introduction to WCF Data Service Demo Creating your first WCF Data Service URI Options and Server side paging Demo performing CRUD from Managed Application Q/A Agenda
  • 7. It is a web Protocol It is used for updating and querying data It uses HTTP protocol It uses ATOM and JSON web message formats It uses URI for resource identification (REST) OData is released under the Open Specification Promise to allow anyone to freely interoperate with OData implementations. OData
  • 8. Application :SharePoint 2010, IBM Web Sphere , SSRS, SQL Azure , Azure table Live Services : facebook ,Pluralsight , vanGuide , TechEd2010, NerdDinner Browsers , ODATA Explorer , Excel 2010 , LINQPAD, SesName Odata Browser Client Librarries : W7Phone , Javascript , .Net , PHP PRODUCER CONSUMER 12/19/2010 http://dhananjaykumar.net/ OData Consumer and Producer
  • 9. WCF Data Services Framework Consists of a combination of patterns and libraries that enable the creation and consumption of data services for the web. The goal of WCF DATA Service is to facilitate the creation of Flexible data Services that are naturally integrated with the web WCF Data Service exposes CRUD operation as REST service using ODATA protocol WCF Data Service
  • 10. • CREATE Data in Table HTTP POST • RETERIVE Data from table HTTP GET • UPDATE Data in table HTTP PUT • DELETE Data in table HTTP DELETE HTTP Verbs
  • 11. Message Format JSON ATOM JSON for AJAX clients ATOM for any type of clients Message Format
  • 12. Custom Data Model LINQ to SQL Class ADO.Net Entity Model Data Model
  • 14. Demo
  • 16. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/")); Blogger blog = new Blogger { SpeakerId = 99, SpeakerBlog = "null", SpeakerName = "Mr Bill ", SpeakerTechnology = "Microsoft" }; context.AddObject("Bloggers", blog); context.SaveChanges(); Create Record
  • 17. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/")); SpeakersEntities entities = new SpeakersEntities(new Uri("http://localhost:7003/WcfDataService1.svc/")); var result = from r in entities.Bloggers select r; foreach (var r in result) { Console.WriteLine(r.SpeakerName + r.SpeakerTechnology); } Retrieve Record
  • 18. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/")); SpeakersEntities entities = new SpeakersEntities(new Uri("http://localhost:7003/WcfDataService1.svc/")); Blogger blogtoUpdate = (from r in entities.Bloggers where r.SpeakerId == 9 select r).FirstOrDefault(); blogtoUpdate.SpeakerTechnology = "C Sharp "; context.AttachTo("Bloggers", blogtoUpdate); context.UpdateObject(blogtoUpdate); context.SaveChanges(); Update Record
  • 19. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:7003/WcfDataService1.svc/")); SpeakersEntities entities = new SpeakersEntities(new Uri("http://localhost:7003/WcfDataService1.svc/")); Blogger blogtoUpdate = (from r in entities.Bloggers where r.SpeakerId == 99 select r).FirstOrDefault(); context.AttachTo("Bloggers", blogtoUpdate); context.DeleteObject(blogtoUpdate); context.SaveChanges(); Delete Record