using HMI.Core.Entity; using HMI.Core.Util; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace HMI.DataViewer.Entity { /// /// 数据库配置类 /// [Serializable] public class DataBase_Setting : NotifyBase { /// /// 数据库文件路径 /// private string dBFilePath = string.Empty; /// /// 数据库操作类 /// private SqliteHelper sql = null; /// /// 数据表名称 /// private string tableName = string.Empty; /// /// 设定程序名 /// private string program = string.Empty; private string timeCol = string.Empty; /// /// 高级查询条件 /// private ObservableCollection condition = new ObservableCollection(); /// /// 构造函数 /// public DataBase_Setting() { // do nothing } /// /// 数据库文件的存储路径 /// public string DBFilePath { get => dBFilePath; set { Set(ref dBFilePath, value); } } public string TimeCol { get => timeCol; set { Set(ref timeCol, value); } } /// /// 数据库操作句柄 /// [XmlIgnore] public SqliteHelper SQL { get { return this.sql; } set { this.sql = value; } } /// /// 高级查询条件 /// public ObservableCollection Condition { get { return this.condition; } set { Set(ref condition, value); } } /// /// 数据表名称 /// public string TableName { get { return this.tableName; } set { Set(ref tableName, value); } } /// /// 设定程序名 /// public string Program { get { return this.program; } set { Set(ref program, value); } } } }