Calling a stored procedure from Silverlight

In a lot of applications, stored procedures are used to perform CRUD operations or complicated calculations on your data. As Silverlight is a very good technology to create business applications with, sooner or later you'll probably have the need to call a stored procedure from a Silverlight application.

In this recipe, you'll learn how to do that.

Getting ready

We're starting from a starter solution that already includes the XAML markup for the UI, and a WCF service. If you want, you can use the starter solution located in the Chapter 10\CallingAStoredProcedure_Starter folder in the code bundle available on the Packt website. The completed solution can be found in the Chapter 10\CallingAStoredProcedure_Completed ...

Get Silverlight 4 Data and Services Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.