I am creating a program with a SQLite database.
I have connected to the database, but the table can't be found..
SQLiteConnection conn = new SQLiteConnection(@"Data Source=DataAlternatif.sqlite");
try
{
conn.Open();
MessageBox.Show("Succeed");
}
catch (Exception)
{
MessageBox.Show("not Succeed");
}
Connection can be established
SQLiteCommand cmd = new SQLiteCommand(conn);
cmd = conn.CreateCommand();
cmd.CommandText = "insert into Customer (CustomerID) values (10)";
cmd.ExecuteNonQuery();
conn.Close();
Cannot find table customer.
This is the database
What should I do?