Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

keeping Mysql connection live between function calls (2 replies)

$
0
0
I have created a database" wrapper" class to assist me in using the MySql connector interface. Anyway, I created and OpenConn() and CloseConn() function which has error checking built in to the functions so I don't have to manually write this each time I want to connect or close a connection.

My question is how can I keep the connection open between function calls? (because it seems as if when each function/method ends, the connection is closed. )

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>