In this article we will be seeing how to connect to the Oracle database using WCF in Silverlight and will perform a search to retrieve the data from the database, display them in the Silverlight data grid using Visual Studio 2010. In the Oracle database we will be having a table Employee Details with three columns Employee_ID, FirstName and LastName, having more than 10,000 data. Based on the Employee_ID we can search for the employees using this Silverlight search page. Steps Involved:Creating a Silverlight Application:I. Open Visual Studio 2010.
Adding WCF Service:I. Right click on the asp.net website (in my case SilverlightApplicationSearchWebpartForOracle.web) which is automatically added to the Silverlight solution when we have created the Silverlight Application (If you check the Host the Silverlight application in a new Web site check box in the New Silverlight Application dialog box, an ASP.NET Web site is created and added to the Silverlight solution), select Add a new item. ii. Select Web from the Installed templates and choose the WCF Service.
iii. Enter the Name for the service. Read more: C# Corner
Go to File => New => Project.
Select Silverlight from the Installed templates and choose the Silverlight Application template.
Enter the Name and choose the location.
Click OK.
2. In the New Silverlight Application wizard check the "Host the Silverlight Application in a new Web site".
Click OK.
Adding WCF Service:I. Right click on the asp.net website (in my case SilverlightApplicationSearchWebpartForOracle.web) which is automatically added to the Silverlight solution when we have created the Silverlight Application (If you check the Host the Silverlight application in a new Web site check box in the New Silverlight Application dialog box, an ASP.NET Web site is created and added to the Silverlight solution), select Add a new item. ii. Select Web from the Installed templates and choose the WCF Service.
iii. Enter the Name for the service. Read more: C# Corner
0 comments:
Post a Comment