SqlParameter[] parameters = { new SqlParameter("@rdTypeName", readertype.rdTypeName), new SqlParameter("@CanLendQty", readertype.CanLendQty), } 或是 SqlParameter[] parameters = { new SqlParameter("@CanContinueTimes", SqlDbType.Int), new SqlParameter("@PunishRate", SqlDbType.Char, 5), } parameters[5].Value = readertype.DataValid; parameters[6].Value = readertype.rdType;
原文:http://www.cnblogs.com/moyuling/p/4336220.html