EnterpriseLibrary.Data 的连接字符串在code里

 using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

SqlDatabase db = new SqlDatabase(“Data Source=127.0.0.1;Initial Catalog=DB;Persist Security Info=True;User ID=sa;Password=");

 DbCommand dbCommand = db.GetSqlStringCommand(strSql);

 db.ExecuteDataSet(dbCommand); 

你可能感兴趣的:(library)