[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"声明结果类型