dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlConnectionStringBuilder Class / Direct Property

In This Topic
Direct Property (MySqlConnectionStringBuilder)
In This Topic
Gets or sets a value indicating whether the MySQL client library (libmysql.dll) will be used.
Syntax
'Declaration
 
Public Property Direct As Boolean
 

Property Value

true, if direct access is used to connect to MySQL server. false, if MySQL client library (libmysql.dll) is used to access to MySQL server. The default value is true.
Remarks

Direct mode of connecting to server is preferred. It is faster, and supports almost every MySQL feature. Moreover, direct mode provides you with easier installation of your application (no need to ship libmysql.dll with the install pack) and makes you more independent of .NET environment settings at the target machine.

You can set Direct to false if you wish to use data compression (Compress), or to test new client libraries from MySQL AB.

See Also