Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Phone 7.5 Data Cookbook

You're reading from   Windows Phone 7.5 Data Cookbook Over 30 recipes for storing, managing, and manipulating data in Windows Phone 7.5 Mango applications.

Arrow left icon
Product type Paperback
Published in Oct 2011
Publisher Packt
ISBN-13 9781849691222
Length 224 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Ramesh Thalli Ramesh Thalli
Author Profile Icon Ramesh Thalli
Ramesh Thalli
Arrow right icon
View More author details
Toc

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image