IDBTable.cs 646 Bytes
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

6
namespace SQLite
潘栩锋's avatar
潘栩锋 committed
7 8 9
{
    public interface IDBTable
    {
潘栩锋's avatar
潘栩锋 committed
10 11 12
        /// <summary>
        /// 表名
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
13
        string TableName { get; }
14

潘栩锋's avatar
潘栩锋 committed
15 16 17
        /// <summary>
        /// 表的 Create SQL
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
18
        string DDL { get; }
19

潘栩锋's avatar
潘栩锋 committed
20 21 22
        /// <summary>
        /// 创建表
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
23
        void Create();
24 25 26

        long FreeID { get; set; }

潘栩锋's avatar
潘栩锋 committed
27 28 29
        /// <summary>
        /// 初始化
        /// </summary>
30 31
        /// <param name="sQLiteHelper"></param>
        void Init(SQLiteHelper sQLiteHelper);
潘栩锋's avatar
潘栩锋 committed
32

潘栩锋's avatar
潘栩锋 committed
33
    }
34 35


潘栩锋's avatar
潘栩锋 committed
36
}