Windows Phone 8.1 Sqlite

编程入门 行业动态 更新时间:2024-10-25 18:25:27
本文介绍了Windows Phone 8.1 Sqlite-net 外键关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我已经在我的 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 13:24:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117693.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Phone   Windows   Sqlite

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!