Commit 55dd6ac2 authored by 潘栩锋's avatar 潘栩锋 🚴

测厚仪数据库地址记录在sysparam,可以修改

parent 7b0d8ff0
......@@ -14,7 +14,11 @@ namespace FLY.Thick.Blowing.Server.Model
public DBTable<DB_ScanData> TbScanData { get; } = new DBTable<DB_ScanData>();
public DBTable<DB_Error> TbError { get; } = new DBTable<DB_Error>();
public DBModel() : base(@"D:\flydata\thick_history.sqlite3")
public DBModel(string dbpath) : base(dbpath)
{
}
public DBModel() : this(@"D:\flydata\thick_history.sqlite3")
{
}
......
......@@ -155,7 +155,7 @@ namespace FLY.Thick.Blowing.Server
mPassword = new Password(null);
mDBModel = new DBModel();
mDBModel = new DBModel(mSysParam.DBPath);
mDBModel.Init();
mLocalDB = new LocalDB();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment