Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Working with disconnected data in Windows Store apps

2,852 views

Published on

When developing applications for mobile devices (Windows Store or Windows Phone) we have to deal with connected data scenarios using cloud web services, and disconnected scenarios where data is stored locally. In this session we will explore all options to store information locally and remotely (files, Isolated Storage, IndexedDB, SQLite, NoSQL DBs and Azure Mobile Services), and how to build a system for synchronizing data when using a combination of these systems.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Working with disconnected data in Windows Store apps

  1. 1. acasquete
  2. 2. The applications require a local storage
  3. 3. File System App Data Store C# / JavaScript SQLite IndexedDB Javascript
  4. 4. Windows Azure Mobile Services are ideal for:
  5. 5. Optimistic Concurrency Control
  6. 6. File System App Data Store C# / JavaScript SQLite IndexedDB Javascript
  7. 7. many browsers
  8. 8. // Opening a Database var // Assume db is a database variable opened earlier var var // Define a person var // Perform the add var
  9. 9. // Opening a Database var db = new PouchDB('dbname'); // Add an object db.put({ _id: ’me@email.com', name: ’Alex', age: 66 }); // Subscripbe to changes db.changes({ onChange: function() { console.log('Ch-Ch-Changes'); } }); // Replicate to external DB db.replicate.to('http://example.com/mydb');
  10. 10. http://www.windowsazure.com/en-us/develop/mobile/tutorials/handle-databasewrite-conflicts-dotnet/ http://msdn.microsoft.com/en-us/library/windowsazure/hh456371.aspx http://www.sqlite.org/docs.html http://pouchdb.com

×