Default implementation of dispose in all database classes takes care of closing the connection.
If you write your own class which also overrides default Dispose method, you have to take care to clean up after yourself.
In the example above, you're not doing any damage, but also nothing useful.
Here is
MS docs[
^] for connection closing.
Microsoft: "The connection is automatically closed at the end of the using block."