We are using the latest version (released on 28 july) of dotConnect for MySQL.
I've simple Winform app that must create a database from my datamodel. I try to do it with the following code:
Code: Select all
Dim Connection = New MySqlConnection(String.Format("server={0}; port={1}; User id={2}; Password={3}; Database={4}", _
edServer.Text, _
edPort.Text, _
edUser.Text, _
edPass.Text, _
Me.Database))
Dim db As New MagentoDB.MagentoDB(Connection)
If db.DatabaseExists Then
If MsgBox("Database exists, delete database?", MsgBoxStyle.YesNo, "Database exists") = MsgBoxResult.Yes Then
db.DeleteDatabase()
Else
Return False
End If
End If
db.CreateDatabase()
Code: Select all
Methode not found: Boolean Devart.Data.Linq.LinqCommandExecutionException.CanThrowLinqCommandExecutionException(System.String, System.Exception).
Another (wierd) thing: in the connectionstring I provide a databasename (Me.Database) which doesn't exist on the server, but db.DatabaseExists return True.
Am I missing a DLL, an import or something else?