如:public static int XXX(string name){try { i = Convert.ToInt32( SqlHelper.ExecuteScalar(SqlHelper.ConnectionString, System.Data.CommandType.StoredProcedure, "xxx", new SqlParameter("@name", name)) ); } catch (Exception ex) { throw ex; }return i; } 還是在業務層去捕獲?
- 2 回答
- 0 關注
- 456 瀏覽
添加回答
舉報
0/150
提交
取消