ADO.Net Data Service-WCF Data Services

No.of Views1699
Bookmarked0 times
Downloads 
Votes0
By  usamawahabkhan   On  16 May 2010 02:05:12
Tag : ADO.NET Entity Framework , General
Microsoft .net framework 4 have usefull enhancements in there Data-services model After the WCf For quite long Microsoft .net Providing such useful services fro client and server side features One of Most Beautful enhancements
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

Microsoft .net framework 4 have usefull enhancements in there Data-services model After the WCf For quite long Microsoft .net Providing such useful services fro client and server side features One of Most Beautful enhancements

.net is WCF Data Services (former "ADO.NET Data Services") whichImproved data binding ,Server side Paging ,Count and Enhanced Blob support.Wcf Data Service are allow to Create Open Data Protocol (OData) to expose and consume data over the Web or intranet by using the semantics of representational state transfer (REST).OData exposes data as resources that are addressed by URIs(uniform resource identifier).Data can accessed by Get,POst and other http varbs, Wcf DataServices


use Entity Data Model to Provide entity-relationship conventions. for more

Steps By Step Guide

Step 1:Create SilveLight Application using Visual Studio 2010

Image Loading

Step 2:Add new Database Unit Test

Image Loading

Step 3:Generate model from datasource using Visual Studio 2010

Image Loading

Step 4:Choice the connection for the datasource in wizard

Image Loading

Step 5:Select the tables to add data model

Image Loading

Step 6:Add WCF Data Service item to project

Image Loading

Step 7:Write code like below

Image Loading

Step 8:Code modication in visual studio 2010 and run

Image Loading

Step 9:Run application and look in broswer

Image Loading

Step 10:Consume the ADO.NET data service into the client.

Image Loading

Step 11:Add Gridview in client application and invoke the service.

Image Loading

Step 12:Place the gridview.

Image Loading

Step 13:Create instance to the WCF data service and bind the data to gridview.

Image Loading

Step 14:Build the client Aplication and run.

Image Loading

That's all see how is data render to client  using WCF data Service. i hope this is help to you all. 

Sample Project Source

Download source files -104 kb

 
Sign Up to vote for this article
 
About Author
 
usamawahabkhan
Occupation-Not Provided
Company-Not Provided
Member Type-Senior
Location-Pakistan
Joined date-06 May 2010
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top