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

Persistant connections? (1 reply)

$
0
0
I'm writing a desktop application that will be using the MySQL Connector for .Net.

I'm wondering if it is better to have one connection that is openend when the app starts, and then closed when the app terminates, or should i have each method (Function) open and close the connection (basically being opened to perform one action, and then closed again).

What's the best way to go about this. My application both reads and writes to the database.

(Additional information: this is an order tracking system)

Viewing all articles
Browse latest Browse all 1451

Trending Articles



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