亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

enterprise lib3的問題

enterprise lib3的問題

12345678_0001 2018-12-17 13:04:49
<br>Database.ExecuteNonQuery (String, Object[])&nbsp; Executes the storedProcedureName using the given parameterValues and returns the number of rows affected.&nbsp; <br><br>我在使用ExecuteNonQuery這個方法時,如果參數沒有輸出參數,則下面的方法是可用的,但如果有Output參數的話,該怎么構造呢?<br>難道必須象下面這樣?<br><span id="Codehighlighter1_98_538_Open_Text"><span style="color: rgb(0, 0, 0);">dbc.AddOutParameter(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">@ProductName</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,System.Data.DbType.String,</span><span style="color: rgb(0, 0, 0);">50</span><span style="color: rgb(0, 0, 0);">); <br>能否可以象</span></span>Database.ExecuteNonQuery("xxxsp",sss,ssss,out fff, out&nbsp; dfds)<br>這樣呢?<br><span id="Codehighlighter1_98_538_Open_Text"><span style="color: rgb(0, 0, 0);"><br></span></span>
查看完整描述

2 回答

?
不負相思意

TA貢獻1777條經驗 獲得超10個贊

可能是沒有那個重載,一直用AddOutParameter.這個挺好的。

查看完整回答
反對 回復 2018-12-21
  • 2 回答
  • 0 關注
  • 436 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號