摘要: 项目中碰到要调用存储过程的情况!但Wcf Ria Service调用存储过程似乎有点麻烦!将碰到的问题简单做个记录。 分别以几个特别的存储过程为例说明下,Wcf Ria Service中怎么样调用存储过程。源代码下载(一)带输入参数和输出参数的存储过程。 在Wcf Ria Services学习笔记(一)中有个存储过程名为totalcredit的存储过程 [dbo].[totalcredit](@name varchar(40),@total int output),如何在Wcf RiaService中调用此存储过程呢? (1)导入存储过程我们在上前章节可以看到,只有表,视图才添加到了Mod.. 阅读全文
posted @ 2011-12-13 11:35 NNKOOK 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 说明: System.ServiceModel.DomainServices.Client.LoadOperation - 用于异步加载System.ServiceModel.DomainServices.Client.InvokeOperation - 用于异步调用System.ServiceModel.DomainServices.Client.SubmitOperation - 用于异步提交写法一privatevoidbutton3_Click(objectsender,RoutedEventArgse){ds.Load(ds.GetSelectAllStudentQuery(),(x) 阅读全文
posted @ 2011-12-13 11:15 NNKOOK 阅读(356) 评论(0) 推荐(0) 编辑