Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone. I'm starting with EF6 and i can't add a new ADO.NET Entity Data Model using CodeFirst From Data Base. These are the steps that i followed

1. Create new WebApplication. MVC with no autentication
2. Run Install-Package MySql.Data (Version 6.9.6)
3. Run Install-Package MySql.Data.Entity (Version 6.9.6) (install EF6 because is a dependency)
4. Run Install-Package MySql.Web (Version 6.9.6)
5. Run Install-Package MySql.Fabric (Version 6.9.6)
7. Run Install-Package MySQL.Net (Version 6.6.4)
8. Edit connectionString created on Web.Config.
XML
<connectionStrings>
    <remove name="LocalMySqlServer" />
    <add name="LocalMySqlServer" connectionString="server=localhost;port=3307;uid=root;password=****" providerName="MySql.Data.MySqlClient" />
  </connectionStrings>


9. Rebuild Solution
10. Start EntityDataModel wizard
a. Code First from Database
b. My Connection didn't appear. I create a new mysql connection
c. Crash

The wizard crash when I click next.

Do you know what I'm doing wrong?

*Hopefully you will excuse my level of English
Posted
Comments
CHill60 10-May-15 17:48pm    
"Crash"? No error message?
nicosuero1 10-May-15 18:41pm    
The wizard disappears. No error message.

 
Share this answer
 
Comments
nicosuero1 11-May-15 19:31pm    
It works. Using MySql.Data 6.8.5, MySql.Data.Entity 6.8.5 instead of 6.9.x version everything works excelent.
[no name] 30-Aug-15 2:31am    
ok fine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900