Linq DatabaseExists() and CreateDatabase() errors

Linq DatabaseExists() and CreateDatabase() errors

Postby 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,
DeepSeaDave
 
Posts: 12
Joined: Wed 12 May 2010 16:48

Postby 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.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby 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?
DeepSeaDave
 
Posts: 12
Joined: Wed 12 May 2010 16:48

Postby 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

Postby AndreyR » Mon 05 Jul 2010 15:22

We have implemented the DatabaseExists() method for MySQL. The new build will be available this week.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for MySQL