N
Naren
Hi,
i am developing one application,that is completely
object oriented application.the main purpose of this
applicaiton to completely maintain the database
operations for the project.
i created one class for the database connection(sql
server database).i want to use that database connection
thorough out all classes in the application,how can i
assign the database connection to the alll the classes.
any one can help me with one example.
the example like this
public class database
{
connection.open()
}
public class employee
{
public void insertnewemployee()
{
//here how can i get that database connection
}
}
Thanks in advance.
Regards
Naren.
i am developing one application,that is completely
object oriented application.the main purpose of this
applicaiton to completely maintain the database
operations for the project.
i created one class for the database connection(sql
server database).i want to use that database connection
thorough out all classes in the application,how can i
assign the database connection to the alll the classes.
any one can help me with one example.
the example like this
public class database
{
connection.open()
}
public class employee
{
public void insertnewemployee()
{
//here how can i get that database connection
}
}
Thanks in advance.
Regards
Naren.