O'Reilly logo

Windows Phone 7.5 Data Cookbook by Ramesh Thalli

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

WCF using ADO.NET Entity Framework

In this recipe, let's use the SQL Server database as the backend. We will create the MyTask table in the SQL Server Express database.

Getting ready

For this recipe, let's create a WCF service project similar to the last recipe. Let's call this project Recipe3_WCFSQLService.

How to do it...

In this recipe, we will create the WCF Service project with SQL Server as the backend database. We use the ADO.NET Entity Framework to create all the entity objects, and then we add the methods to return the results to the client application.

  1. In this recipe, we will add SQL Server Express database to the project. Name it MyTasks.mdf.
  2. Double-click the database to open it and then right-click on Tables to add a new table. Call this ...

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