Before Visual Studio 2008 SP1 to add a ADO.NET Data Service Reference (Proxy) we use Datasvcutil.exe . Using this tool we generate the Client side proxy and add that file in client side project . Now using Visual Studio 2008 SP1 RTM simple we can use Add Service Reference Options. (This is same as adding WCF Service Reference).
First Create a Simple ADO.NET Data Service selecting the following template. ( Add this template in ASP.NET Web Application).
Next Add ADO.NET Entity Data Model or LINQ To SQL to the same project
Follow the Entity Data Model Wizard.
Here is the my ADO.NET Data Service.
Now i am going to add this Service into my Silver Light project using Add Service Reference options as shown below. ( This is same as Adding WCF service Reference.)
After adding the service to the client project Visual Studio generates all the client side classes , adds the references. now you can consume the service as shown below
Nandri( Thank you).
Sreenivasaragavan.
No comments:
Post a Comment