Exemplo n.º 1
0
        public DataTable ReadData(ISqlData data)
        {
            SQLiteDataAdapter ad = null;
            DataTable         dt = new DataTable();

            try
            {
                SQLiteCommand command = new SQLiteCommand(data.GetQueryCommand(), m_dbConnection);
                ad = new SQLiteDataAdapter(command);
                ad.Fill(dt); //fill the datasource
            }
            catch (Exception e)
            {
                Trace.WriteLine(e);
            }

            return(dt);
        }