This project has moved. For the latest updates, please go here.
1
Vote

GetTableList returns too many objects

description

Should probably be:

SELECT name FROM sqlite_master WHERE type='table';
public DataTable GetTableList()
        {
            DataTable dt = Select("SELECT name FROM sqlite_master WHERE type='table'");
            DataTable dt2 = new DataTable();
            dt2.Columns.Add("Tables");
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                string t = dt.Rows[i]["name"] + "";
                if (t != "sqlite_sequence")
                    dt2.Rows.Add(t);
            }
            return dt2;
        }

comments