Book Image

Windows Phone 7.5 Data Cookbook

By : Ramesh Thalli
Book Image

Windows Phone 7.5 Data Cookbook

By: Ramesh Thalli

Overview of this book

Windows Phone 7.5 Mango contains support for apps written in Silverlight or XNA. These apps can store data on the device, and also load and manipulate data from "the cloud" and other web services.This Windows Phone 7.5 Data Cookbook has a range of recipes to help you apply data handling concepts. You will be able to apply the knowledge gained from these recipes to build your own apps effectively. This Windows Phone 7.5 Data Cookbook starts with data binding concepts at the UI layer and then shows different ways of saving data locally and externally in databases. The book ends with a look at the popular MVVM software design pattern. The recipes contained in this book will make you an expert in the areas of data access and storage.
Table of Contents (15 chapters)
Windows Phone 7.5 Data Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

McObject Perst as an embedded object database


In this recipe we will discuss how to use the third-party embedded database from McObject called Perst.

Getting ready

Download Perst.NET from http://www.mcobject.com. You have to first register to get the download option. After you download it to your local machine, unzip, and save it to the local folder for later reference with a folder name Perst.Net.

Navigate to the saved folder and open the PerstWP7 project and build the project. We need the PerstWP7.dll to be added to our recipe demo. Now let's build an app similar to our first MyTasks recipe in Chapter 1. First add a reference to PerstWP7 to the project reference.

How to do it...

In this recipe we will learn how we can use the Perst Database to implement our MyTask sample.

  1. Copy the MyTasks project we created from Chapter 1 and rename it MyTasks_Perst

  2. Open App.xaml.cs and add the initalization code for the Perst Database, as follows:

    public Database Database { get; internal set; }
    
    internal void...