09 2014 档案
摘要:#region 通过带参数的Sql语句来实现模糊查询(多条件查询) StringBuilder sb = new StringBuilder("select * from books"); List listWheres = new...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Text;namespace 自己封...
阅读全文
摘要:有两种方式://通过读取配置文件来获取连接字符串第一种方式:App.config 文件的格式:在SqlHelper中通过代码读取配置文件中的字符串:(需添加引用:using System.Configuration;)private static readonly string conStr = ...
阅读全文
摘要:1.ADO.NET 连接数据库的模版string constr = "data source=127.0.0.1\\mysql2008;database=dbtest;integrated security=true";try{using (SqlConnection con=new SqlCo...
阅读全文

浙公网安备 33010602011771号