增加sqllite.dll,本机无需部署环境

This commit is contained in:
bnala committed 2025-02-13 14:46:04 +08:00
1 parent f9129f0bff
commit 4c4b6df9ba
3 files changed
+7 -2

No files matched your search

+5
View File
@@ -182,5 +182,10 @@
<Folder Include="mod\api\" />
<Folder Include="mod\view\" />
</ItemGroup>
<ItemGroup>
<Content Include="sqlite3.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+2 -2
View File
@@ -13,8 +13,8 @@ namespace WindowsFormsApp1.db
public class SQLiteHelper<T> where T : new()
{
//private readonly string _databasePath = Path.Combine(Environment.CurrentDirectory, "db\\MES_PLC.db");
private readonly string _databasePath = "C:\\Users\\bnala\\source\\repos\\WindowsFormsApp1\\WindowsFormsApp1\\db\\MES_PLC.db";
private readonly string _databasePath = Path.Combine(Environment.CurrentDirectory, "db\\MES_PLC.db");
//private readonly string _databasePath = "C:\\Users\\bnala\\source\\repos\\WindowsFormsApp1\\WindowsFormsApp1\\db\\MES_PLC.db";
private readonly SQLiteConnection _connection; // SQLite连接对象
/// <summary>
Binary file not shown.