[英]Which SQLite and connection method should I use with WPF in VS2010 C#?
I'm trying to create a .NET WPF application in VS2010 C# but I'm confused over the SQLite downloads and the connection methods available. 我正在尝试在VS2010 C#中创建.NET WPF应用程序,但对于SQLite下载和可用的连接方法感到困惑。
First some suggest using the ADO.NET 2.0 Provider for SQLite while they also say that it is using .NET 2.0 code, so I have to use the useLegacyV2RuntimeActivationPolicy attribute: 首先,有人建议为SQLite使用ADO.NET 2.0提供程序,同时他们也说它正在使用.NET 2.0代码,因此我必须使用useLegacyV2RuntimeActivationPolicy属性:
<startup useLegacyV2RuntimeActivationPolicy="true|false" >
</startup>
Is this the right approach? 这是正确的方法吗? Any disadvantages of this attribute?
此属性有什么缺点吗?
Second I can't decide which package to download from here http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki . 其次,我无法决定从此处http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki下载哪个软件包。 There is no info if the x64 version will work correctly on x86 systems, also I couldn't find info about the differences between: the simple "Setup", "Precompiled Binaries" and the "Precompiled Statically-Linked Binaries".
没有信息,如果x64版本可以在x86系统上正常运行,我也找不到有关以下两者之间差异的信息:简单的“设置”,“预编译的二进制文件”和“预编译的静态链接的二进制文件”。
Thanks for the answers in advance. 预先感谢您的回答。
使用NuGet,搜索SQLIte并获取SQLite dll和ADO.NET提供程序,NuGet将设置其他所有内容...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.