Silverlight 2.0 Application Development with LINQ to SQL and a WCF Service - Creating a Visual Studio 2008 solution to work with “LINQ to SQL”, WCF and Silverlight 2.0
(Page 2 of 6 )
As I mentioned earlier, if you are quite new to these technologies and need complete walkthroughs, consider reading my earlier articles (listed in the previous section).
The following are the steps you need to take to create the environment:
Add “WCF Service Application” Project (DemoEmpService) to the solution.
Add “LINQ to SQL classes” item (DemoEmp.dbml) to the WCF project.
Add the new table “emp” to your database as given at http://cid-41050f68f010a662.skydrive.live.com/self.aspx/Public/images/DeptEmp.gif
Using “Server Explorer,” drag and drop the “Emp” table onto the “LINQ to SQL” designer (of DemoEmp.dbml)
Go to properties of the current data context, and change “Serialization Mode” to “Unidirectional” (Fig 01). This automatically adds each “LINQ to SQL” entity (named “Emp”) with the necessary attributes (like Table, DataContract, Column, DataMember etc.) to be serialized (with respect to WCF standards).

The steps are continued in the next section.
Next: WCF development >>
More Windows Scripting Articles
More By Jagadish Chaterjee