增加sqllite.dll,本机无需部署环境
This commit is contained in:
1 parent
f9129f0bff
commit
4c4b6df9ba
3 files changed
+7
-2
No files matched your search
@@ -182,5 +182,10 @@
|
|||||||
<Folder Include="mod\api\" />
|
<Folder Include="mod\api\" />
|
||||||
<Folder Include="mod\view\" />
|
<Folder Include="mod\view\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="sqlite3.dll">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
@@ -13,8 +13,8 @@ namespace WindowsFormsApp1.db
|
|||||||
public class SQLiteHelper<T> where T : new()
|
public class SQLiteHelper<T> where T : new()
|
||||||
{
|
{
|
||||||
|
|
||||||
//private readonly string _databasePath = Path.Combine(Environment.CurrentDirectory, "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 string _databasePath = "C:\\Users\\bnala\\source\\repos\\WindowsFormsApp1\\WindowsFormsApp1\\db\\MES_PLC.db";
|
||||||
private readonly SQLiteConnection _connection; // SQLite连接对象
|
private readonly SQLiteConnection _connection; // SQLite连接对象
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user