Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In This Chapter
• Code-first and database-first data model creation
• Differences between isolated storage and XAP file deployment
• Change tracking with LINQ to SQL
• Defining one-to-many relationships
• Retrieving a local database from isolated storage
• Using SqlMetal to generate your data model
• Deploying a prepopulated database to isolated storage
• A testable navigation service
• Mapping inheritance hierarchies
• Controlling optimistic concurrency
• A Twitter timeline viewer
For some apps, having to rely on a cloud service for storing application data is not practical. Some scenarios cry out for local storage of structured data on the phone.
With the Mango release of Windows Phone (7.5), Microsoft introduced a relational database system to the phone, allowing you to place a local database in either isolated storage or in your app’s XAP file.