Bug #60283 | Entity Framework 4 - ProviderIncompatibleException | ||
---|---|---|---|
Submitted: | 28 Feb 2011 18:00 | Modified: | 28 Feb 2011 20:57 |
Reporter: | Richard Deeming | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 6.3.6 | OS: | Windows (7 x64) |
Assigned to: | CPU Architecture: | Any |
[28 Feb 2011 18:00]
Richard Deeming
[28 Feb 2011 19:22]
Valeriy Kravchuk
Looks like related to/a duplicate of Bug #59168. Please, check.
[28 Feb 2011 19:34]
Richard Deeming
It looks like it could be related, but I wouldn't say it's a duplicate. #59168 seems to deal with errors connecting to an existing database; I'm getting an error trying to check when a new database exists. Obviously this isn't something that needs to be done regularly, but it would be nice if we could detect when the database doesn't exist and generate a script to create it.
[28 Feb 2011 20:44]
Richard Deeming
Never mind - after testing with an existing database, I've discovered that the MySql connector doesn't support generating the "create database" script at all: System.Data.ProviderIncompatibleException: CreateDatabaseScript is not supported by the provider. at System.Data.Common.DbProviderServices.DbCreateDatabaseScript(String providerManifestToken, StoreItemCollection storeItemCollection) at System.Data.Objects.ObjectContext.CreateDatabaseScript() The MySqlProviderServices class would need to override the DbCreateDatabaseScript(string, StoreItemCollection) method to support this.
[28 Feb 2011 20:57]
Richard Deeming
Looks like the same problems as Bug #59168.