增加sqllite.dll,本机无需部署环境
This commit is contained in:
parent
f9129f0bff
commit
4c4b6df9ba
@ -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>
|
||||
@ -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>
|
||||
|
||||
BIN
WindowsFormsApp1/sqlite3.dll
Normal file
BIN
WindowsFormsApp1/sqlite3.dll
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user