dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlDump Class / ExportAll Property
Example

In This Topic
    ExportAll Property
    In This Topic

    Determines whether to export functions, procedures, and views together with tables.

    This property is obsolete. Use ObjectTypes property instead.

    Syntax
    'Declaration
     
    Public Property ExportAll As Boolean
    public bool ExportAll {get; set;}

    Property Value

    true, if functions, procedures, and views DDL statements should be added to dump text; otherwise, false. The default value is false.
    Remarks
    This property allows you to perform complete backup of database.
    Example
    public void DumpAll(MySqlConnection myConnection)
    {
      myConnection.Unicode = true;
      myConnection.Open();
    
      MySqlDump mySqlDump = new MySqlDump();
    
      mySqlDump.Connection = myConnection;
      mySqlDump.Database = "Test";
    
      mySqlDump.ExportAll = true;
    
      mySqlDump.Backup("d:\\tmp\\mydump.dmp");
    
      myConnection.Close();
      Console.WriteLine("Dumped.");
    }
    Public Sub DumpAll(ByVal myConnection As MySqlConnection)
      myConnection.Unicode = True
      myConnection.Open()
      Dim mySqlDump As New MySqlDump
      mySqlDump.Connection = myConnection
      mySqlDump.Database = "Test"
      mySqlDump.ExportAll = True
      mySqlDump.Backup("d:\tmp\mydump.dmp")
      myConnection.Close()
      Console.WriteLine("Dumped.")
    End Sub
    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