I am a beginner in SQLite. Now I am trying to insert new record in sample northwind database. My C# Code is below:
SQLiteConnection myConnection = new SQLiteConnection();
myConnection.ConnectionString = @"Data Source=|DataDirectory|\northwindEF.db";
using (myConnection)
{
SQLiteCommand myCommand = myConnection.CreateCommand();
myCommand.CommandText = "INSERT INTO Categories(CategoryID,CategoryName,Description) VALUES(11,'Bakery','Baked goods such as bread and cakes')";
myConnection.Open();
myCommand.ExecuteNonQuery();
myConnection.Close();
}
When i run this program, i didn't get any error. But my new record is not inserted into table. What wrong with my code. Please help me.