?? getconnection.cs
字號:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace property.model.GetConnection
{
class GetConnection
{
public SqlConnection con = null;
//
public SqlConnection GetCon()
{
try {
//轉(zhuǎn)義字符 //
con = new SqlConnection("server=a\\mr;uid=sa;pwd=;database=db_credence");
con.Open();
return con;
}// end block try()
catch(Exception e)
{
con = null;
return con;
}// end block catch()
}//end block menthod SqlConnection GetCon()
}// end block class GetConnection
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -