如:
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;
}
还是在业务层去捕获?
慕桂英546537
有只小跳蛙