如何在 VB.NET 中使用 dapper 訪問資料庫中的保留字?如果有解決方案而不更改訪問資料庫中欄位中的名稱,我想使用“名稱”。
謝謝
Con.Execute($"Update Users Set name = name,email = @email,phone = @phone,password = @password Where id = @id", New With {
Key .name = bunifuTextBox1.Text,
Key .email = txtEmail.Text,
Key .phone = bunifuTextBox2.Text,
Key .password = txtPassword.Text,
Key .id = id
})
uj5u.com熱心網友回復:
使用括號:
Con.Execute($"Update Users Set [name] = @name, email = @email, phone = @phone, [password] = @password Where id = @id", ...
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/516774.html
上一篇:ACCDB資料庫,更新GUID列
