标签: c# sql-server-2008 nhibernate stored-procedures
我有两个存储过程,"同名" 但不同数据库中的功能不同。
假设我有两个名为DB1&的数据库。 DB2。在DB1中,存储过程包含7个参数,DB2包含11个参数。
那么如何使用C#获取存储过程参数计数。通过使用Count我可以为两个不同的数据库添加条件。
答案 0 :(得分:0)
以下链接可以帮助您,
http://www.4guysfromrolla.com/articles/092408-1.aspx
http://adamprescott.net/2012/09/21/sqlcommandbuilder-deriveparameters/
http://blogs.lessthandot.com/index.php/datamgmt/datadesign/getting-the-list-of-parameters/
任何帮助让我知道...............