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

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

问题描述

我在寻找一种可以用于Metro Style应用程序的ORM。我发现很多帖子指的是不同的SQLite实现,似乎是工作(或不,根据其他帖子)与Metro风格的应用程序,但没有工作示例项目到目前为止在Windows 8地铁上显示一个ORM。其他帖子指的是可能有效的项目,但由于禁止API调用,因此未能通过Marketplace认证。



我发现的许多信息可能已过时,因此我不确定我是否已正确地搜索。



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



感谢您的建议, p>

Adrian

解决方案

我目前在C#Windows 8上使用SQLite Metro App使用实验分支的代码,如Tim Heuer在这篇文章(还有一个视频),它工作得很好,它将通过商店认证(Tim Heuer还在帖子中提到它)。



它不是Entity Framework,但它是我们迄今为止用于处理本地数据库的最好的。






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.

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.

Thanks for your suggestions,

Adrian

解决方案

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.

Other alternatives:

  • 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天全站免登陆