How to create a global "C#" class for data base connection such that
?
1. all classes and controls can handle.
2. remian all session untill the main from of an application closed.
3. disconnect from the server when closing windows Form application
diaafayed
0
Newbie Poster
Recommended Answers
Jump to PostI'd recommend against that, actually. It makes managing the connection harder. Also, many database servers will support connection pooling to eliminate the performance cost of creating, opening, and closing a connection for each transaction.
Jump to PostYes.
All 6 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
diaafayed
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
brite_a
0
Newbie Poster
diaafayed
0
Newbie Poster
brite_a
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.