更方便快捷的外部操作数据库的方法(另类玩法)
代码如下: using System; using System.Data; using System.Data.SqlClient; public class Helper { public static void Main() { //连接字符串 string strcon = “server = .;database = blog;uid = sa;pwd = 1”; SqlHelper helper = new SqlHelper(strcon); //表employee中有neme(varchar(20)),age(int),sex(bit)三个字段; string sql = “s
下载地址
用户评论