Connection object wrapper.

  • Thread starter Thread starter Curious George
  • Start date Start date
C

Curious George

I would like to create a connection object wrapper for my web application.

I would like my app to request a connection from my wrapper and have my
wrapper function choose the best DB to connect to or fall back to.

I am worried about memory clean up though.

What is the best way to construct such a wrapper as to guarantee that it is
memory safe.

-George
 
Is there a way to inherit from

System.Data.SqlClient.SqlConnection

I get a sealed class error.
 
Back
Top