问题描述
我有一个简单的要求就可以在Silverlight应用程序上实现.我想在下拉列表中列出所有存储的过程,并在网格上查看其输出.我目前正在使用WCF服务,在其中我拖放了要查看的所有存储过程并在.dbml文件上生成了类.目前,这对我有用.但是,如果我有一个新存储的proc,则必须生成该类并再次更新该服务.
有没有一种方法可以查看存储的proc的结果而无需每次都更新服务?我当时在考虑使用DataContext.ExecuteCommand方法,但是不确定是否有更好的方法.
Hi,
I have a simple requirement to be implemented on a silverlight app. I want to list down all the stored procs in a drop down and view its output on a grid. I am currently having a WCF service where I have drag dropped all the stored procs I want to view and generated the classes on a .dbml file. This works for me at the moment. However, if I have a new stored proc, I am forced to generate the class and update the service again.
Is there a way to view the results of the stored proc without updating the service everytime? I was thinking of using DataContext.ExecuteCommand Method but not sure if there is a much better way to do this.
推荐答案
这篇关于在Silverlight应用程序上的Adhoc存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!