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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.