diff --git a/WindowsFormsApp1/MES_PLC_Control.csproj b/WindowsFormsApp1/MES_PLC_Control.csproj index 243cd9e..2ccf3c2 100644 --- a/WindowsFormsApp1/MES_PLC_Control.csproj +++ b/WindowsFormsApp1/MES_PLC_Control.csproj @@ -182,5 +182,10 @@ + + + Always + + \ No newline at end of file diff --git a/WindowsFormsApp1/db/SQLiteHelper.cs b/WindowsFormsApp1/db/SQLiteHelper.cs index 6dcb8c6..ced75dc 100644 --- a/WindowsFormsApp1/db/SQLiteHelper.cs +++ b/WindowsFormsApp1/db/SQLiteHelper.cs @@ -13,8 +13,8 @@ namespace WindowsFormsApp1.db public class SQLiteHelper 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连接对象 /// diff --git a/WindowsFormsApp1/sqlite3.dll b/WindowsFormsApp1/sqlite3.dll new file mode 100644 index 0000000..3962438 Binary files /dev/null and b/WindowsFormsApp1/sqlite3.dll differ