What is the use of Connection Open method in ADO.Net

Last Reply on Jul 05, 2013 06:30 AM By RkHirpara

Posted on Jul 05, 2013 02:01 AM

we usually open a connection by con.open() and close the connection by con.close().when we create a method like,

public void conopen()

{

if(connectionstate.open)

con.open();

con.close();

}

what is basically the use of this method..??...why we create this method when we have co.open() and con.close();

This question does not have replies marked as Answer.