例如,我可以生成一个SQLite db文件并将其作为资源放在项目中吗?项目首次启动时,将数据库复制到隔离存储中,而不必担心此数据库文件在手机中可能不可用。此外,我可以将此空db文件复制到另一个平台,如android或iPhone,并在该平台的SQLite api中操作此db。
最佳答案
A database in SQLite is a single disk file. Furthermore, the file format is cross-platform. A database that is created on one machine can be copied and used on a different machine with a different architecture. SQLite databases are portable across 32-bit and 64-bit machines and between big-endian and little-endian architectures.
所以是的,当您验证 SQLite API 在您想要使用的任何地方都可用时,作为一种存储格式应该没问题。
编辑:是的,SQLite does work on Windows Phone 7 , 使用 this Codeplex project或 this one .
关于sqlite - sqlite db 文件在任何平台下都可用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5740885/