我可以将 Entity Framework 或 Linq To SQL 与 Windows 8 Metro Style 应用程序一起使用吗? [英] Can I use Entity Framework or Linq To SQL with Windows 8 Metro Style apps?

查看:23
本文介绍了我可以将 Entity Framework 或 Linq To SQL 与 Windows 8 Metro Style 应用程序一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找某种可以与 Metro Style 应用程序一起使用的 ORM.我发现很多帖子都提到了不同的 SQLite 实现,这些实现似乎在 Metro 风格的应用程序中工作(或不工作,根据其他帖子),但到目前为止没有工作示例项目显示 Windows 8 Metro 上的 ORM.其他帖子指的是可能有效但由于禁止 API 调用而无法通过 Marketplace 认证的项目.

I'm looking for some kind of ORM that can be used with Metro Style apps. I found lots of posts referring to different SQLite implementations that seem to be working (or not, according to other posts) with Metro style apps, but no working sample projects so far showing an ORM on Windows 8 Metro. Other posts are referring to projects that might work, but not pass the Marketplace certification because of forbidden API calls.

我发现的很多信息可能已经过时,所以我不确定我是否用谷歌搜索过.

Lots of the information I found is probably outdated, so I'm not sure if i even googled this right.

你们中有人设法在 Windows Metro 风格的应用程序中启动并运行某种 ORM 吗?如果可能,我想使用 EF Code First,但我越来越绝望,所以我不太挑剔.

Has any of you managed to get some kind of ORM up and running in a Windows Metro style app? If possible, I'd like to use EF Code First, but I'm growing desperate, so I'm not too picky.

感谢您的建议,

阿德里安

推荐答案

我目前正在 C# Windows 8 Metro 应用程序上使用 SQLite,使用来自实验分支的代码,正如 Tim Heuer 在 这篇文章(还有一个视频),而且效果很好,会通过店铺认证(Tim Heuer也在帖子里提到了).

I'm currently using SQLite on a C# Windows 8 Metro App using the code from an experimental branch as explained by Tim Heuer in this post (there's also a video), and it is working great, and it will pass the store certification (Tim Heuer also mentions it in the post).

它不是实体框架,但它是我们迄今为止最好的用于处理本地数据库的工具.

It is not Entity Framework, but it is the best we have available so far for working with local databases.

其他选择:

  • IndexedDB (It's an HTML5 feature, so it is only for HTML5 apps)
  • SQLite - AFAIK it works, but doesn't pass the store certification yet
  • WinRT File Based Database - Interesting, though not as performant as SQLite
  • Siaqodb - Interesting. Didn't test it yet
  • Sterling NoSQL OODB - Doesn't support WinRT just yet, but should not be difficult to port... I expect a release soon. It is NoSQL, though.

这篇关于我可以将 Entity Framework 或 Linq To SQL 与 Windows 8 Metro Style 应用程序一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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