J'ai ID de Row puis je vais mettre à jour d'autres valeurs.Comment faire pour mettre à jour la ligne dans sqlite.net pcl dans Windows 10 C#?
Je ne sais pas comment mettre à jour mes valeurs! Mon tableau:
class MyTable
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public string Date { get; set; }
public string Volumes { get; set; }
public string Price { get; set; }
}
autres informations:
string path;
SQLite.Net.SQLiteConnection conn;
public updatepage()
{
this.InitializeComponent();
path = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "ccdb.sqlite");
conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), path);
conn.CreateTable<MyTable>();
}
S'il vous plaît référence cet article http://blog.tpcware.com/2014/05/universal-app-with-sqlite-part-2/ bien qu'il dise à l'application universelle, mais je pense que cela fonctionne aussi avec l'application Windows 10. – Janak