首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > C#调用存储过程显示客户的订单金额

C#调用存储过程显示客户的订单金额

  • 资源大小:55.27 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: C#源码

资 源 简 介

Visual C# 通过调用存储过程显示客户的订单金额,获取客户的订单总额(获取存储过程参数的返回值):   private void button1_Click(object sender, EventArgs e)   {//获取客户的订单总额(获取存储过程参数的返回值)    DataClasses1DataContext MyDataContext = new DataClasses1DataContext();    string MyCustomer = "alfki";    decimal? MyAmount = 0;    MyDataContext.CustOrderTotal(MyCustomer, ref MyAmount);    MessageBox.Show(MyCustomer+"客户的订单金额是:"+MyAmount.ToString(),"信息提示",MessageBoxButtons.OK);   }

文 件 列 表

srcfans.com
订单金额
MyForm
bin
Release
MyForm.exe
订单金额
订单金额
MyForm
app.config
srcfans.com
VIP VIP
0.165661s