Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local storage of structured data in Win8 Metro-style apps [closed]

In a desktop .NET application, the standard option for implementing a local relational database is to use SQL Server Compact Edition, and then of course there is the possibility to use SQLite and other third-party engines.

What are the options available to a .NET Metro-style application? SQL CE seems to be unavailable - any replacement? In fact, the entire System.Data namespace seems to be gone - so no LINQ to SQL or Entity Framework, either?

What about HTML5 IndexedDB that seems to be available to Metro HTML/JS apps - can that be used from .NET somehow?

like image 499
Pavel Minaev Avatar asked Sep 17 '11 20:09

Pavel Minaev


1 Answers

Apparently, the Extensible Storage Engine Win32 API (aka "JET Blue") is still available in Metro apps. C++ ones can use it directly via #include <esent.h>. .NET apps would have to use P/Invoke. This does not give SQL or any other sort of high-level relational querying constructs, but it does provide for key lookup, transactions, multiple indices per table, and multi-field indices.

like image 109
Pavel Minaev Avatar answered Oct 25 '22 01:10

Pavel Minaev