[UWP]在Visual Studio 2015上安装SQLite [英] [UWP]Install SQLite on Visual Studio 2015
问题描述
我在Windows 10 PC上使用Visual Studio 2015,我想安装SQLite在UWP应用程序上测试它。
I am using Visual Studio 2015 on a Windows 10 PC and I'd like to install SQLite to test it on a UWP app.
我做了以下步骤,但是我无法添加using指令System.Data.SQLite。
I did the following step, but I can't add the using directive System.Data.SQLite.
1)安装 sqlite-netFx46-setup-bundle-x86-2015-1.0.105.2.exe
1) Install sqlite-netFx46-setup-bundle-x86-2015-1.0.105.2.exe
2)为通用Windows平台安装SQLite
2) Install SQLite for Universal Windows Platform
3)安装NuGet包System.Data.SQLite
3) Install NuGet package System.Data.SQLite
现在我得到那个System.Data.SQLite不被识别,为什么?
Now I got the that System.Data.SQLite is not recognized, why?
我做错了什么和/或丢失了什么?
What am I doing wrong and/or missing ?
这里的图像是explayn更好: https://ibb.co/bU6ef5
Here an image to explayn better : https://ibb.co/bU6ef5
谢谢
Stefano
推荐答案
参见
UWP - 新数据库。除非您愿意,否则您不必使用程序包管理器控制台。我认为Add-Migration部分是我必须使用控制台做的唯一部分。我建议先使用该演练,然后再将它用于
你自己的项目。
See UWP - New Database. Except if you want to, you don't have to use the Package Manager Console for most of that. I think the Add-Migration part is the only part I must do using the console. I suggest going through that walkthrough first before using it for your own project.
我学到的东西是UWP非常缺乏对数据网格格式的支持。在Windows窗体中,我们有DataGridView,在WPF中我们有DataGrid但在UWP中不支持它们。 UWP似乎只想支持令人震惊和敬畏的人;看起来令人印象深刻的
的东西,但是当它真正有效时,它们是缺乏的。
Something I learned is that UWP is very lacking in support of grid formats for data. In Windows Forms we have DataGridView and in WPF we have DataGrid but they are not supported in UWP. UWP seems to want to only support stuff that shock and awe people; the stuff that looks impressive, but when it comes to actually being productive they are lacking.
寻找 SQLite& VS Extensions中用于Visual Studio(和SSMS)的SQL Server Compact Toolbox扩展;我会帮你的。另请参阅
SQL浏览器的SQLite 。
Look for SQLite & SQL Server Compact Toolbox extension for Visual Studio (and SSMS) in VS Extensions; it will help. Also look at DB Browser for SQLite.
这篇关于[UWP]在Visual Studio 2015上安装SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!