Method Dispose Dispose() Releases the resources used by the DbConnection. Declaration public void Dispose()