<br>Database.ExecuteNonQuery (String, Object[]) Executes the storedProcedureName using the given parameterValues and returns the number of rows affected. <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 dfds)<br>這樣呢?<br><span id="Codehighlighter1_98_538_Open_Text"><span style="color: rgb(0, 0, 0);"><br></span></span>
enterprise lib3的問題
12345678_0001
2018-12-17 13:04:49