Hello, I can not get values from SQLite database
using System.Data.SQLite; using System.Windows; using System.Data; using System.Data.SqlClient;
... DataTable datatabl = new DataTable ();
public void Zanesti_dannie_v_tablicy() { SQLiteConnection connection = new SQLiteConnection(string.Format("Data Source={0};", databaseName)); try { connection.Open(); string sqlCommand = "SELECT * FROM test "; SQLiteCommand mycommand = new SQLiteCommand(sqlCommand, connection); SQLiteDataReader reader = mycommand.ExecuteReader(); datatabl.Load(reader); reader.Close(); connection.Close(); } catch (Exception) { MessageBox.Show("Оёёй!"); } } ------------------------------- Студия выдала вообще какой-то бред "Строка не распознана как действительное значение DateTime". строка( datatabl.Load(reader); )Хотя я взял это из примера для MSSql где это работало.
What does the DateTime have to do with this? Please tell me how to read from the database and put it in the table. thank