?? sqlconntection.cs
字號:
?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;
/// <summary>
/// sqlconntection 的摘要說明
/// </summary>
public class sqlconntection
{
private string constr;
private string comstr;
public string con
{
get { return constr; }
set { constr=value ; }
}
public string com
{
get { return comstr; }
set { comstr=value ; }
}
public DataSet ds(string a, string b)
{
a = con;
b = com;
SqlConnection sqlcon = new SqlConnection(a);
SqlCommand sqlcom = new SqlCommand(b, sqlcon);
SqlDataAdapter da = new SqlDataAdapter(sqlcom);
DataSet ds1 = new DataSet();
da.Fill(ds1);
return ds1;
}
//public sqlconntection()
//{
//}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -