摘要: 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... 阅读全文
posted @ 2013-02-27 16:56 步子521 阅读(214) 评论(0) 推荐(0) 编辑