Skip to content

Views aren't be exported #102

Open
Open
@aarhor

Description

@aarhor

I want to use this Library in my Project (.NET 7). It works fine, but there aren't any views in the sql file.
For the Backup I use the following code:

public static bool Create_DB_Backup(string Destination)
    {
       try
        {
            using (MySqlConnection conn = new MySqlConnection(Connectionstring()))
            {
               using (MySqlCommand cmd = new MySqlCommand())
                {
                    using (MySqlBackup mb = new MySqlBackup(cmd))
                    {
                        cmd.Connection = conn;
                        conn.Open();
                        mb.ExportInfo.ExportViews = true;
                        mb.ExportToFile(Destination);
                        conn.Close();
                    }
                }
            }
            return true;
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message.ToString());
            return false;
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions