Windows Phone 7.1 (Mango) OData uses a different approach for tombstoning the Data Service State of an application. In this tutorial, we take a WP 7.0 application and convert it to WP 7.1.
In Mango OData, methods have been added to the DataServiceState class that improves performance and functionality when storing client state. You can now serialize nested binding collections as well as any media resource streams that have not yet been sent to the data service.
The conversion of the WP 7.0 application to WP 7.1 involves targeting the application to WP 7.1, revising the client data classes to support serialization, and modifying the App.xaml’s Application_Deactivated and Application_Activated events to use the new DataServiceState’s Serialize and Deserialize methods.
Windows Phone OS 7.1 – code named Mango – has been released as a beta from Microsoft. This release includes a significant number of enhancements and new features compared to the initial 7.0 release.
This tutorial provides an introduction to the Mango release. The sample application we create uses new OData features to access a database using a WCF web service. The OData enhancements that are demonstrated include the automatic generation of the OData client classes and the use of LINQ to support queries.
In addition, the new Rapid Application Switching feature, aka the “dormant state”, is demonstrated and contrasted against tombstoning.
Enjoy … bill b