使用TableAdapter进行bind_param

时间:2015-03-30 15:11:56

标签: c# asp.net

我创建了一个表适配器,在查询构建器中我添加了这个查询:

INSERT INTO users (first, surname, email, pass, mobile, address, postcode, city) VALUES (?,?,?,?,?,?,?,?,)

我的目标是bindParam存储到变量中的任何内容以与查询匹配,我想知道这是使用TableAdapters的bindParam的正确方法吗?

我理解在VALUES中的PHP我必须放:首先,:姓氏等等......然后是bindParam,那么.NET中的等价物是什么?

0 个答案:

没有答案