Using MySql with Entity Framework 4 and the Code-First Development CTP
Scott Guthrie's recent post on code-first development with Entity Framework 4 sparked interest in experimenting with it using MySql instead of Sql Server. However, configure Entity Framework 4 to generate the database automatically with MySql.
Exception:
The initial attempt resulted in a ProviderIncompatibleException, indicating that the NerdDinners database did not exist. Creating the database manually also did not resolve the issue, leading to a second ProviderIncompatibleException stating that "DatabaseExists is not supported by the provider".
Resolution:
After further exploration, a few key points emerged:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3