SqlConnection
object itself takes care of it. You don't have to explicitly mange this connection every time, i.e Once you provide the Connenction String of your database to the code, connection job is done here.
Now you have to take care of your data by query or procedure and stuff and how you display to the user, i.e In Grid or in listview etc.
And if you might have noticed,
you can't inherit this SqlConncetion
class.
See the
documentation[
^]
So as you can see, it takes care itself. :)
-KR