Windows Phone 8.1 Sqlite-net 外键关系 [英] Windows Phone 8.1 Sqlite-net foreign key relationship

查看:35
本文介绍了Windows Phone 8.1 Sqlite-net 外键关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 Windows Phone 通用应用程序中安装了来自 NuGet 包的 sqlite-net.但它不包含表之间的外键关系属性.我在网上搜索,发现 SQLITE-Net Extenstions可以通过使用属性来处理这个问题,但它只能安装在 Windows 8.1 应用程序上,不能安装在 Windows Phone 8.1 上.

I have installed sqlite-net from NuGet package in my windows phone universal app. But it does not contain foreign key relationship attribute between tables. I searched the web and found that SQLITE-Net Extenstions can handle this by using attributes, But it can only be installed on Windows 8.1 app not on windows Phone 8.1.

如何在 windows phone 8.1 中使用此扩展,或者是否有其他解决 sqlite 中外键关系的解决方案?

How can use this extension in windows phone 8.1 or is there any other solution for foreign key relationships in sqlite?

谢谢!

推荐答案

存在此库的 PCL 版本.如果您通过 NuGet 安装,您可能会看到此错误

There exists a PCL version of this library. If you install via NuGet, you might see this error

您可以通过按如下方式克隆存储库来解决此问题:

You can solve this by cloning the repository as follows:

然后将其作为现有项目添加到您的解决方案中.(在 Solution ExplorerAddExisting Project... 中右键单击您的解决方案)

and then adding it as an existing project to your solution. (right click your solution in Solution Explorer, Add, Existing Project...)

然后选择正确的文件夹:

Then select the right folder:

之后,您可以添加对 WP8.1 项目的引用.

After that you can add a reference to your WP8.1 project.

这篇关于Windows Phone 8.1 Sqlite-net 外键关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆