IDがRowの場合、他の値を更新します。Windows 10のC#でsqlite.net pclの行を更新するには?
私の値を更新する方法がわかりません! マイ表:
class MyTable
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public string Date { get; set; }
public string Volumes { get; set; }
public string Price { get; set; }
}
その他の情報:
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>();
}
この記事を参考にしてくださいhttp://blog.tpcware.com/2014/05/universal-app-with-sqlite-part-2/ Universalアプリには言いますが、Windows 10アプリでも動作すると思います。 – Janak