0
我有以下代碼企業庫整數輸出的大小與存儲過程
using (DbCommand cmd = db.GetStoredProcCommand("asp"))
{
db.AddOutParameter(cmd, P_id, DbType.Int32, 0);
}
它給我的大小應該是什麼錯誤?
我有以下代碼企業庫整數輸出的大小與存儲過程
using (DbCommand cmd = db.GetStoredProcCommand("asp"))
{
db.AddOutParameter(cmd, P_id, DbType.Int32, 0);
}
它給我的大小應該是什麼錯誤?
您沒有足夠的代碼....因爲我無法確定P_id是什麼。 (字符串,整數等)
話雖如此...我已經工作的代碼看起來像這樣:
DbCommand dbc = db.GetStoredProcCommand("dbo.uspMyProc");
db.AddOutParameter(dbc, "@MyParameterName", DbType.Int32, 0);