Windows Scripting
  Home arrow Windows Scripting arrow Silverlight 2.0 Application Development wi...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Silverlight 2.0 Application Development with LINQ to SQL and a WCF Service
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 6
    2008-11-12

    Table of Contents:
  • 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
  • WCF development
  • Silverlight development
  • Troubleshooting configurations
  • Troubleshooting configurations: continued

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Silverlight 2.0 Application Development with LINQ to SQL and a WCF Service


    (Page 1 of 6 )

    This is my third article in a series focusing on Silverlight 2.0 (RC 1) development using Visual Studio 2008. In this article, we will create a simple “LINQ to SQL” model, access the model with a WCF Service and consume the same using a Silverlight 2.0 application. Technically, we will have Silverlight 2.0 controls accessing a regular WCF Service and fetch information from the database using the “LINQ to SQL” model.

    This article assumes that you have a minimum knowledge of technologies like “LINQ to SQL,” “WCF,” “Silverlight,” etc. If you don’t, and you need step-by-step walkthroughs 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 that I have written 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 (HIGHLY RECOMMENDED)

    If you are new to LINQ to SQL, please refer to the following articles that I have written:

    http://www.aspfree.com/c/a/.NET/Beginning-LINQ-to-SQL-Using-Visual-Studio-2008/

    http://www.aspfree.com/c/a/.NET/Introducing-LINQ-to-SQL-Designer-using-Visual-Studio-2008/


    If you want to learn more about WCF Service and WCF Service Library, consider reading the following WCF articles that I have written:

    http://www.aspfree.com/c/a/ASP.NET/Developing-a-WCF-Service-Library-and-Hosting-it-as-WCF-Web-Service-Using-VS2K8/

    http://www.aspfree.com/c/a/BrainDump/Developing-an-Object-Oriented-Business-Component-Using-WCF-and-Visual-Studio-2008/ 

    For this article, I upgraded my development machine from “Silverlight 2.0 tools beta 2” to “Silverlight 2.0 tools RC 1.” My machine is now equipped with the following environment:

    • Windows Server 2003 with SP2

    • IIS

    • SQL Server 2008

    • Visual Studio 2008 (comes with .NET 3.5) with SP1

    • Microsoft Silverlight 2.0 Tools (RC 1) for Visual Studio 2008 (includes Silverlight, Silverlight SDK and Tools for VS 2008).


    To make this article simple, I created a table structure as 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 SP3) with Silverlight 2.0 RC 1. 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.

    More Windows Scripting Articles
    More By Jagadish Chaterjee


       · Thanks for a great article! Nice explanation!One issue I had was after I added...
     

    WINDOWS SCRIPTING ARTICLES

    - More Windows Scripting Workarounds from Nilpo
    - Overloading Methods and More in VBScript
    - Improving MFC for Windows Vista
    - Regular Expressions in VBScript
    - Working with Dates in WMI
    - Completing Calendars with VBScript Date Func...
    - Building Calendars with VBScript Date Functi...
    - Working With Dates and Times in VBScript
    - Designing WCF DataContract Classes Using the...
    - Understanding Dates and Times in VBScript
    - Working With Arrays in VBScript
    - Compressed Folders in WSH
    - Using .NET Interops in VBScript
    - Nilpo`s Scripting Secrets, Vol I
    - Database operations using Silverlight 2.0 WC...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT