简体   繁体   English

用于wp7,pc和xbox的c#数据库

[英]c# databases for wp7, pc and xbox

我目前正在开发一款c#游戏,我希望将它推向市场,适用于Windows 7,Windows phone芒果和Xbox 360.哪个SQL包可以在所有3个平台上移植,以获得我需要的数据库?

CoolStorage is a cross-platform database library supporting a number of database backends (including SQLite). CoolStorage是一个跨平台的数据库库,支持许多数据库后端(包括SQLite)。 The Windows Phone version supports (only) SQLite in isolated storage, but when you compile the source code, I bet it also works perfectly on Xbox (using SQLite). Windows Phone版本支持(仅)SQLite在独立存储中,但是当您编译源代码时,我敢打赌它也可以在Xbox上完美运行(使用SQLite)。

This is the link: http://viciproject.com/coolstorage 这是链接: http//viciproject.com/coolstorage

SQLite is almost definitely your best bet if you want the same database backend over all three platforms. 如果你想要在所有三个平台上使用相同的数据库后端, SQLite几乎绝对是你最好的选择。 There is a port of it for windows phone 7 , there is a really good .NET library for windows, and apparently is no problem on XNA . 它有一个用于Windows Phone 7的端口,有一个非常好的Windows .NET库,显然在XNA上没问题。

The only one of those three platforms I've used it extensively on is windows 7, and it's been really good. 我广泛使用的三个平台中唯一一个是Windows 7,它真的很棒。

The only thing I'd add is that while I think SQLite is a good choice for all three platforms, there is no need to have the same backend, the actual choice of back end is pretty easily abstracted away. 我唯一要补充的是,虽然我认为SQLite是所有三个平台的不错选择,但没有必要拥有相同的后端,后端的实际选择很容易被抽象掉。

According to this , there is no database support for Windows Phone 7. 根据这个 ,对于Windows Phone 7的没有数据库的支持。

You can probably use SQLite (the norm for Android). 你可以使用SQLite(Android的标准)。 Apparently there are several possibilities of running that on Windows Phone 7. Do a Google search for sqlite Windows Phone . 显然,在Windows Phone 7上有几种运行方式。谷歌搜索sqlite Windows Phone

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM