Solved

Can I inherit from SqlConnection class?

Posted on 2008-06-20
1
1,180 Views
Last Modified: 2012-08-13
I was wondering if it was possible to create a class that inherits from a SqlConnection class?
0
Comment
Question by:PsychoCoder
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 125 total points
ID: 21836459
no, you cannot, it is a sealed class.
Usually you create a connection or database helper class that contains a SqlConnection object.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question