摘要:
static class SqlHelper{ private static string strConn = ConfigurationManager.ConnectionStrings["连接字符串的名字"].ConnectionString; public static int ExecuteNonQuery(string sql,params SqlParameter[] parameters) { using(SqlConnection conn = new SqlConnection(strConn)) { con... 阅读全文