-
Book Overview & Buying
-
Table Of Contents
Microsoft Silverlight 4 Data and Services Cookbook
By :
Looking at the namespaces and classes in the Silverlight assemblies, it's easy to see that there are no ADO.NET-related classes available in Silverlight. Silverlight does not contain a DataReader, a DataSet or any option to connect to a database directly. Thus, it's not possible to define a connection string for a database and let Silverlight applications connect with that database directly.
The solution adds a layer on top of the database in the form of services. The services that talk directly to a database (or, more preferably, to a business and data access layer) can expose the data so that Silverlight can work with it. However, the data that's exposed in this way does not always have to come from a database. It can come from a third-party service through, by reading a file, or be the result of an intensive calculation executed on the server.
Silverlight has a wide range of options to connect with services. This is important as it's the main way of getting data into our applications...
Change the font size
Change margin width
Change background colour