Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 4.1Mb
PDF (A4) - 4.1Mb


Connectors and APIs Manual  /  MySQL Connector/NET Developer Guide  /  Connector/NET Connections

4.4 Connector/NET Connections

All interaction between a .NET application and the MySQL server is routed through a MySqlConnection object when using the classic MySQL protocol. Before your application can interact with the server, it must instantiate, configure, and open a MySqlConnection object.

Even when using the MySqlHelper class, a MySqlConnection object is created by the helper class. Likewise, when using the MySqlConnectionStringBuilder class to expose the connection options as properties, your application must open a MySqlConnection object.

This sections in this chapter describe how to connect to MySQL using the MySqlConnection object.