In your code:
class MySQLConnection : MySqlConnection
In the superclass code:
public sealed class MySqlConnection : DbConnection, IDisposable, ICloneable
Basically, you should not inherit from MySqlConnection
. There is no reason to do this and that sealed
in the class declaration says that it is forbidden to inherit from it.
I do not know what you're trying to do, but whatever it is, you should not try to inherit from MySqlConnection
.
In addition, having two classes whose name only differs in upper / lower case is a bad programming practice, as it is very confusing.