IntroductionMicrosoft .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 GuideStep 1:Create SilveLight Application using Visual Studio 2010Step 2:Add new Database Unit TestStep 3:Generate model from datasource using Visual Studio 2010Step 4:Choice the connection for the datasource in wizardStep 5:Select the tables to add data modelStep 6:Add WCF Data Service item to projectStep 7:Write code like belowStep 8:Code modication in visual studio 2010 and runStep 9:Run application and look in broswerStep 10:Consume the ADO.NET data service into the client.Step 11:Add Gridview in client application and invoke the service.Step 12:Place the gridview.Step 13:Create instance to the WCF data service and bind the data to gridview.Step 14:Build the client Aplication and run.That's all see how is data render to client using WCF data Service. i hope this is help to you all. Sample Project SourceDownload source files -104 kb |