I'm using SQLitePCLfor local database in my Windows Phone App. I need to check whether a insert operation in the database is successful or failed. How can I check that?
I'm trying following snippet for inserting:
using ( var connection = new SQLiteConnection(DbController.DB_NAME))
{
using( var statemant = connection.Prepare(sql)) //sql is the string containing SQL command prepared earlier
{
statemant.Step();
}
}
I don't find any property or method in the statement object that contains the success status. Is there any way to get the success status?
Aucun commentaire:
Enregistrer un commentaire