简体   繁体   English

无法查询 sqlite 的 devart dotconnect 中的数据

[英]cannot query for data in devart dotconnect for sqlite

                using (var ctx = new TIS2APPContext())
                {
                    var test = ctx.RSTOPs.ToArray();
                }

I have just downloaded dotconnect for sqlite (trial version) and I have the above code.我刚刚下载了 sqlite(试用版)的 dotconnect,我有上面的代码。 An exception " Method not found: 'System.String Devart.Data.SQLite.SQLiteConnectionStringBuilder.get_LicenseKey()'. " is thrown when I run into ctx.RSTOPs.ToArray();当我遇到Method not found: 'System.String Devart.Data.SQLite.SQLiteConnectionStringBuilder.get_LicenseKey()'. ctx.RSTOPs.ToArray(); . .

May I know what I have done wrong?我可以知道我做错了什么吗? Thanks in advance.提前致谢。

With Target framework=.NET Framework, the first location CLR looks for the assembly is GAC.对于 Target framework=.NET Framework,CLR 查找程序集的第一个位置是 GAC。 So, your development environment works with .NET Framework Devart.* assemblies although you installed .NET Standard Devart.* assemblies to the project via NuGet.因此,尽管您通过 NuGet 将 .NET 标准 Devart.* 程序集安装到项目中,但您的开发环境仍可与 .NET 框架 Devart.* 程序集一起使用。

A solution is to reinstall dotConnect for SQLite in your development environment and select the "Do not install assemblies in the GAC" option in Setup Wizard.一种解决方案是在您的开发环境中为 SQLite 和 select 重新安装 dotConnect 安装向导中的“不要在 GAC 中安装程序集”选项。 And, set the License Key parameter in your connection string.并且,在您的连接字符串中设置许可证密钥参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM