1, first need to add a model class library throughout the project, in the class library to reference EF
I need to add the MySQL object entity for EF under this project
First we need to introduce several related references, which I add through nuget, such as
Next I need to add the EF framework through the ADO Entity Data Model, but MySQL is not found when I select the data source
2. Add a data source
For MySQL I installed the components such as
Then in Control Panel-Administrative Tools-Data source ODBC (double-click)
Pop-up dialog box, first tab, "User DSN", click "Add" inside there is MySQL option, "config", fill in blank, click Test, after success, restart vs should be able to see
Configure database connections such as
OK then click Next to encounter problems ...
Solution--
Not yet resolved, embarrassed ~, every time the addition is a flash back!!!
Also refer to http://blog.csdn.net/niewq/article/details/41877301
Vs2013+ef6+mysql