在Win8 Metro风格的应用程序中结构化数据的本地存储 [英] Local storage of structured data in Win8 Metro-style apps

查看:155
本文介绍了在Win8 Metro风格的应用程序中结构化数据的本地存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在桌面.NET应用程序中,实现本地关系数据库的标准选项是使用SQL Server Compact Edition,然后可以使用SQLite和其他第三方

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.

.NET Metro风格应用程序可用的选项有哪些? SQL CE似乎不可用 - 任何替换?事实上,整个 System.Data 命名空间似乎已经消失了,所以没有LINQ to SQL或Entity Framework,?

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?

HTML5 IndexedDB似乎可用于Metro HTML / JS应用程序怎么样 - 可以从.NET使用?

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

推荐答案

显然,可扩展存储引擎 Win32 API(又名JET Blue)在Metro应用程序中仍然可用。 C ++可以通过 #include< esent.h> 直接使用它。 .NET应用程序必须使用P / Invoke。这不提供SQL或任何其他种类的高级关系查询构造,但它提供了密钥查找,事务,每个表的多个索引和多字段索引。

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.

这篇关于在Win8 Metro风格的应用程序中结构化数据的本地存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆