新しいユーザー定義の入力でデータベースを更新しようとしています。更新したいテーブルに列(BIOS)をすでに作成しました。クエリを文字列として実行しようとすると、エラーが発生します
CS0103:「bios」という名前は現在のコンテキストに存在しません
関連するコードの平和は以下に掲載されています:
if(IsPost){
userbio = @Request["Bio"];
currentuser = @Request.Form["currentuser"];
var db = Database.Open("ResearchA");
var insertbio = "UPDATE usernameb SET bios = userbio WHERE username = currentuser"; //Update the table with 'userbio' when a username is selected.
db.Execute(insertbio,bios);
}
アイデアや提案はありますか?ありがとう :))