Linq DatabaseExists() and CreateDatabase() errors

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
DeepSeaDave
Posts: 12
Joined: Wed 12 May 2010 16:48

Linq DatabaseExists() and CreateDatabase() errors

Post by DeepSeaDave » Wed 12 May 2010 16:55

I get a "The method or operation is not implemented" error when calling the DataContext.DatabaseExists() method, and I get a "Error on executing DbCommand" error when I try to execute the DataContext.CreateDatabase() method. Are these methods implemented and working? If so, what should I be looking for to see why it won't work for me?

Thanks,

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 13 May 2010 12:15

The DatabaseExists() method is not implemented yet.
To run the CreateDatabase() method you should have the database already created with the name specified in the connection string . The user you connect under should have rights to execute DDL scripts.

DeepSeaDave
Posts: 12
Joined: Wed 12 May 2010 16:48

Post by DeepSeaDave » Thu 13 May 2010 14:12

So if I understand this correctly, all the CreateDatabase() method will do is create the tables in the already created database?

I would still have to use plain SQL to see if the database exists and then use SQL to create the database?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 13 May 2010 15:48

We are working on the DatabaseExists method.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 05 Jul 2010 15:22

We have implemented the DatabaseExists() method for MySQL. The new build will be available this week.

Post Reply