using FLY.OBJComponents.Server.Model; using SQLite; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FLY.Integrated.Server.Model { /// <summary> /// 数据库对象 /// </summary> public class DbModel:SQLiteDbContext,IErrorDBModel { /// <summary> /// Width表 对象 /// </summary> public DBTable<Db_Width> TbWidth { get; } = new DBTable<Db_Width>(); /// <summary> /// WinderInfo表 对象 /// </summary> public DBTable<Db_WinderInfo> TbWinderInfo { get; } = new DBTable<Db_WinderInfo>(); /// <summary> /// Error表 对象 /// </summary> public DBTable<DB_Error> TbError { get; } = new DBTable<DB_Error>(); /// <summary> /// /// </summary> /// <param name="dbpath">sqlite数据库路径</param> public DbModel(string dbpath) : base(dbpath) { } /// <summary> /// /// </summary> public DbModel() : this(@"D:\blowingdata\integrated.sqlite3") { } } }