ExportInfo properties are not accessible in vb.net

Oct 11, 2014 at 7:18 PM
Edited Oct 11, 2014 at 7:19 PM
I am facing a problem: I cannot access ExportInfo properties(TablesToBeExportedDic and ExportRows). The dll that I imported in my project is the one in the folder :MySqlBackup.NET 2.0.4\Binaries\v4.0 (MysqlBackup.dll) what can be the problem AND When I test my code using the test project everything works fine but back in my project nothing works (stream memory contains nothing).

I wanted to export the database structure only!!!

Here are the codes:
dim createur as mysqlbackup
  Dim comm As New MySqlCommand(), mstream As New IO.MemoryStream()
                                Dim encodage As New System.Text.UTF8Encoding(False)
                                Dim textWriter As New IO.StreamWriter(mstream, encodage)
                                createur = New MySqlBackup(comm)
'BDconnexionstring is a function that return a connection for the database "premier"
                                condb.ConnectionString = BDconnexionstring("premier")
'THIS FOR TO CHECK IF THE CONNECTIONSTRING IS CORRECT
                                Me.TXT_desc.Text = BDconnexionstring("premier")
                                condb.Open()
                                comm.Connection = condb
                                'On ecrit la BD dans la memoire temporaire
                                createur.ExportToTextWriter(textWriter)
                                condb.Close()
Coordinator
Oct 12, 2014 at 4:31 AM
I have answered your question altogether at here:
https://mysqlbackupnet.codeplex.com/discussions/569544