Forum Xamarin.Android

Everytime i try to update my sqlite database i get this sqlitelog 'sqlite3_extended_errcode'

zzinzzin CAMember ✭✭

this is my code

using(Data.connection)
{
Data.connection.RunInTransaction (() => {
Data.connection.Execute ("UPDATE zUsers Set zaGan = ? WHERE zID = ?", 98.00M, zu.zID);
Data.connection.SaveTransactionPoint();
});
Data.connection.Commit ();
}

this is the data.connection class

public class Data {
private static SQLite.SQLiteConnection _connection;
public static SQLite.SQLiteConnection connection
{
get {
if (_connection == null) {
SQLite3.Config (SQLite3.ConfigOption.Serialized);
string path = System.Environment.GetFolderPath (System.Environment.SpecialFolder.Personal);
_connection = new SQLite.SQLiteConnection (System.IO.Path.Combine (path, "zUsers.db"));
}
return _connection;
}
}
}

Sign In or Register to comment.