双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

各位大神来帮帮我解决下

hfdianjing hfdianjing 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
[Function(Name = "proc_books")]
public IMultipleResults proc_books(
[Parameter(Name = "@bookname", DbType = "varchar(200)")] string name,
[Parameter(Name = "@booknum", DbType = "int")] int booknum,
[Parameter(Name = "@bookprice", DbType = "int")] int bookprice,
[Parameter(Name = "@booktype", DbType = "varchar(20)")]string booktype)
{
IExecuteResult result = this.ExecuteMethodCall
(this, MethodInfo.GetCurrentMethod() as MethodInfo, name, booknum, bookprice, booktype);
return result.ReturnValue as IMultipleResults;
}


private void button2_Click(object sender, EventArgs e)
{
Model.dbSQL db = new Model.dbSQL();
dataGridView1.DataSource = db.proc_books(this.txtname.Text.ToString(), Convert.ToInt32(this.txtnum.Text),
Convert.ToInt32(txtprice.Text), this.txttype.Text.ToString()).GetResult<Model.buyBookRecord> ().ToList();


}

提示报 没有返回IMultipleResults的函数"proc_books"声明结果类型
...全文
评论 6
收藏 已收藏
分享
返回顶部
hfdianjing
LINQ 8,492 成员 4,736 内容