Let us get into practice so as to understand all that we have learnt in the previous sections. We will create a new project from scratch, based upon the Silverlight Application template. Why not use a template which is more oriented to RIA Services, such as Business Application? The goal is to clarify all the necessary steps to create an RIA Services project.
Let us begin from the Database First approach, using a simple database. The following image shows a simple database:
As a summary, these will be the steps to follow: First, the project will be created. Second, the Entity Framework model will be added. Later, the Domain Service will be added, and, to finish, this will be bound to our Silverlight project.
Let us begin by creating the project and adding the Entity Framework model:
First, click on Create new project. Then, choose Silverlight application. Name the project
SimpleDB
and point out that an associated web project...