DBModel.cs 620 Bytes
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10
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.FeedbackRenZiJia.Server.Model
{
11
    public class DbModel : SQLiteDbContext, IErrorDBModel
潘栩锋's avatar
潘栩锋 committed
12
    {
13
        public DBTable<Db_ThickHeat> TbThickHeat { get; } = new DBTable<Db_ThickHeat>();
潘栩锋's avatar
潘栩锋 committed
14 15 16

        public DBTable<DB_Error> TbError { get; } = new DBTable<DB_Error>();

17
        public DbModel(string dbpath) : base(dbpath)
潘栩锋's avatar
潘栩锋 committed
18 19 20
        {

        }
21
        public DbModel() : this(@"D:\blowingdata\airring.sqlite3")
潘栩锋's avatar
潘栩锋 committed
22 23 24 25 26
        {

        }
    }
}