我的数据库封装类C

 百家乐-数据     |      2020-03-17 02:39

public class DbAccess { SqlConnection conn = null; SqlCommand cmd = null; public DbAccess(卡塔尔 { // // TODO: 在那地增加布局函数逻辑 // conn = new SqlConnection(卡塔尔; conn.ConnectionString = Convert.ToString(System.Configuration.ConfigurationSettings.AppSettings[datasource]); //conn.ConnectionString = initial catalog=_new;data source=.;user id=bt;password=btbtbtbt;Connect Timeout=5000; cmd = new SqlCommand(卡塔尔; cmd.Connection = conn; cmd.CommandTimeout = 0; } public DbAccess(string constr卡塔尔 { // // TODO: 在此增加布局函数逻辑 // co

using System;using System.Data;using System.Configuration;using System.Web;//using System.Web.Security;//using System.Web.UI;//using System.Web.UI.WebControls;//using System.Web.UI.WebControls.WebParts;//using System.Web.UI.HtmlControls;using System.Data.SqlClient;using System.Text;using System.Collections;namespace mySqlSQLDB{