public SqliteImpl() { string fileName = System.Environment.CurrentDirectory + "\\test.db"; SqliteHelper.CreateDBFile(fileName); conn = SqliteHelper.GetConnection(fileName, 3); SqliteHelper.CreateTable(conn, SqlParams.MainTable.SQL_CREATE_TABLE); }
public void TestDB() { string fileName = System.Environment.CurrentDirectory + "\\test.db"; System.Diagnostics.Debug.WriteLine("数据库路径:" + fileName); SqliteHelper.CreateDBFile(fileName); SqliteHelper.CreateTable(SqliteHelper.GetConnection(fileName, 3), SqlParams.MainTable.SQL_CREATE_TABLE); }