小编rad*_*din的帖子

如何在Windows 10 C#中更新sqlite.net pcl中的行?

我有行ID,然后我将更新其他值.

我不知道如何更新我的价值观!我的表:

 class MyTable
{
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }
    public string Date { get; set; }
    public string Volumes { get; set; }
    public string Price { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

其他信息:

 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>();
    }
Run Code Online (Sandbox Code Playgroud)

c# sqlite sqlite-net windows-10

9
推荐指数
1
解决办法
5455
查看次数

标签 统计

c# ×1

sqlite ×1

sqlite-net ×1

windows-10 ×1