繁体   English   中英

C# SqLite 自定义构建 sqlite3.dll 位置

[英]C# SqLite Custom build sqlite3.dll location

我的问题是;

我需要制作一个大约有 6400 列的 sqlite 表。 (我知道不建议在表中使用那么多列。)在 SQLite 文档中,

最大列数

表中的最大列数为 32767。 SQLITE_MAX_COLUMN 的默认设置是 2000。

我使用自定义参数重建了 sqlite3.dll,因此使 SQLITE_MAX_COLUMN 常量大于我的需要。 我在文档中使用了这部分来构建自定义 dll。

但是当我尝试使用这个 dll 来管理 SQLite db 文件时,我找不到它的位置。

C# app I'm developing is using System.Data.SQLite.Core package and it calls SQLite.Interop.dll.

如何使我的 C# (.net Framework) 应用程序使用我自定义构建的 sqlite3.dll

我们昨天遇到了同样的问题。 The thing is, when you have a look at System.Data.Sqlite.Core in Visual Studio, you will notice that its compile time assembly is System.Data.Sqlite.dll and as you wrote, it calls Sqlite.Interop.dll.

所以需要自定义 Sqlite.Interop.dll 而不是 sqlite3.dll。
在我们的例子中,我们替换了位于此(相对)路径下的 Sqlite.Interop.dll,您的可能会根据您的运行时、package 版本等而有所不同:

.nuget\packages\stub.system.data.sqlite.core.netstandard\1.0.113.2\runtimes\win-x64\native

暂无
暂无

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

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