How to Pass Static Sqlconnection in 3Tier Arch using c#

Raj_Chennai
Posted by Raj_Chennai under C# category on | Points: 40 | Views : 1359
public static SqlConnection con = new SqlConnection("Data Source=raj-pc;Initial Catalog=sampleDB;Integrated Security=True"); 
public static void Open()
{

con.Open();
}
public static void Close()
{
con.Close();
}

Comments or Responses

Login to post response