简体   繁体   English

在Windows Phone 8中使用数据库的更简单方法

[英]Easier way work with database in windows phone 8

I'm trying to work with sql server compact database in my windows phone 8 project. 我正在Windows Phone 8项目中尝试使用SQL Server Compact数据库。 For now the only way of doing this is by using SQL to LINQ with database SQL sever compact 3.5. 目前,唯一的方法是将SQL to LINQ与SQL Server Sever Compact 3.5一起使用。 The worst is that the SQL to LINQ should be code-first and this produces a lot of problems. 最糟糕的是,SQL to LINQ应该是代码优先的,这会产生很多问题。 Example for simple application with database can be found here: 带有数据库的简单应用示例可以在这里找到:

Example1 Example2 例1 例2

Please give me some another example or write it down. 请给我另一个例子或写下来。

Just give a look Here and Here . 看看这里这里 These links help me a lot to use sqlite in wp8 application. 这些链接对我在wp8应用程序中使用sqlite有很大帮助。

The variants for resolving the problem gived by Jaihind are good, but for my project, there are problems with locating the database file. 解决Jaihind提出的问题的方法不错,但是对于我的项目,查找数据库文件存在问题。 I recomend to the readers to download this code sample and review the documentation: sample . 我建议读者下载此代码示例并查看文档: sample

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

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