Designing WCF DataContract Classes Using the LINQ to SQL Designer
(Page 1 of 5 )
This is my sixth article in a series focusing on Silverlight 2.0 development using Visual Studio 2008. In this article, we will leverage the power of the “LINQ to SQL Designer” by creating WCF-related “DataContract” classes visually. Finally, we will consume the same using a simple Silverlight 2.0 application.
This article assumes that you have minimum knowledge of technologies like "LINQ to SQL," "WCF," "Silverlight" and so forth. If you don't, and you need step by step instructions for the above technologies, please go through the following links.
If you are new to Silverlight 2.0 development, please refer to the following articles before going ahead (available at http://www.aspfree.com/cp/bio/Jagadish-Chatarji/):
Beginning Silverlight 2.0 Development using Visual Studio 2008
Developing a Silverlight 2.0 Application that Consumes a WCF Service using Visual Studio 2008
Silverlight 2.0 Application Development with "LINQ to SQL" and WCF Service (HIGHLY RECOMMENDED)
Database Operations Using Silverlight 2.0, WCF and "LINQ to SQL"
This article is based on the following configuration:
To make this article simple, I created a table structure which can be seen at http://cid-41050f68f010a662.skydrive.live.com/self.aspx/Public/images/DeptEmp.gif
The entire source code for this article is available in the form of a free downloadable zip file. The solution was developed using Microsoft Visual Studio 2008 Team Edition (with SP1) with Microsoft SQL Server 2008 Developer Edition, on Microsoft Windows Server 2003 Standard Edition (with SP2) with Silverlight 2.0 (RTM). I didn't really test it in any other environment. I request that you post in the discussion area if you have any problems in execution.
Next: Creating WCF DataContract classes visually using LINQ to SQL Designer >>
More Windows Scripting Articles
More By Jagadish Chaterjee