[英]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:
带有数据库的简单应用示例可以在这里找到:
Please give me some another example or write it down. 请给我另一个例子或写下来。
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.