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
    public bool Direct {get; set;}

    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.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also