O'Reilly logo

Mastering LOB Development for Silverlight 5: A Case Study in Action by Rocío Serrano, Braulio Díez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CRUD

On the sample built in the previous section, let us implement the basic operations (Read, Create, Update, and Delete). You will also learn how to link the results to particular elements of the UI, as well as a succinct introduction to error control.

Read

Let us see how to read data. In this case, we will focus on the necessary code to perform this operation and leave aside things such as linking information to controls. This sample reads from the database and shows a series of message boxes, one for every read message.

  1. Let us begin by opening the Code-Behind Mainpage.cs file. Add the using namespace containing our context. When searching in the file SilmpleDB.Web.g.cs, under the hidden folder Generated_Code, it can be seen that the space is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required