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

In This Topic
    Direct Property (MySqlConnection)
    In This Topic
    Gets or sets a value indicating whether the MySQL client library (libmysql.dll) is 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

    There are two modes of connecting to server in dotConnect for MySQL: Direct mode and Client mode.

    Direct mode is preferred. It supports almost every MySQL feature and 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.

    To switch to Client mode, set Direct to false. This allows you to use data compression (Compress), or to test new client libraries from MySQL developers.

    When a value is assigned to this property, the MySqlConnection is closed.

    Direct is always true for .NET Compact Framework.

    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