Ado调用存储过程
public ReturnModel GetStudent(string json) { ParamsModel model = JsonConvert.DeserializeObject<ParamsModel>(json); //连接对象 using (SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["StudentConn"].ToString())) { //命令对象 SqlCommand cmd = conn.CreateCommand(); cmd.CommandType = CommandType.StoredProcedure;//存储过程类型 cmd.CommandText = "proc_Page";//存储过程名称 //参数 ParameterName参数名字 SqlDbType参数类型 SqlValue参数值 Direction参数描述(输出、输入) SqlParameter[] sqls = new SqlParameter[] { new SqlParameter{ ParameterName="BigScore", SqlDbType=SqlDbType.Int,SqlValue=model.BigScore }, new SqlParameter{