Why is Code First from MySQL Database not creating model, connectionString?

Kurt Wagner

So I have the following:

  • VS2015 Enterprise 14.0.23107.0 D14REL
  • MySQL for VisualStudio 1.2.4
  • Connector/NET 6.9.7

Nuget:

  • EntityFramework 6.1.3
  • MySql.Data 6.9.7
  • MySql.Data.Entities 6.8.3
  • MySql.Web 6.9.7

And the following in Web.config:

  <entityFramework>
    <defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6" />
    <providers>
      <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
    </providers>
  </entityFramework>

Within Server Explorer I have a valid connection to a remote MySql Server instance and read/write tables, etc. However, when I try to add an ADO.NET entity and select 'Code first from database', hit next, select the connection, mark "Yes, include the sensitive data in the connection string" and leave the "Save connection settings Web.Config as:" checked as well as the name textfield and then hit next, Visual Studio seems to think a bit, shows the picture below real quick, and then the wizard closes. However, there are no models created nor is there a connectionString created in Web.config. Why is this happening and how do I fix it?

enter image description here

Barkermn01

I have had this problem and was never able to fix it, I think VS just can't manage the Mysql Database inside its server explorer for datasets/binding.

Even in WPF, I had to manually build Dataset objects for WPF binding - it was a pain in the arse. If you can, stick with MSSQL or learn how to program MySQL, in C#/VB.NET it's not nice.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Code first database not being created from model

From Dev

Why is it called 'Code First' from database in EF

From Dev

Creating a database with MySQL Workbench from existing schema/model

From Dev

Why database first classes differ from my code first classes

From Dev

auto update code first from database model, is it possible?

From Dev

Why is Hibernate not creating database for MySQL?

From Dev

Creating database through code first EF

From Dev

creating a database in mysql from java

From Dev

creating a database in mysql from java

From Dev

How to add additional tables to an existing code first from database EF model?

From Dev

'Code First From Database' Template not showing in Visual Studio Entity Data Model Wizard

From Dev

Entity Framework 6.1.3 initialize existing, but empty database from code-first model

From Java

Code-first vs Model/Database-first

From Dev

Creating Pyramid/SQLAlchemy models from MySQL database

From Dev

Creating polylines from mysql database in google maps

From Dev

Creating a list using data from MySQL database

From Dev

Entity Framework Code First Migration in MySql DataBase

From Dev

Entity Framework 5 code-first not creating database

From Dev

Entity Framework: Help Creating Database using Code first Approach

From Dev

Entity Framework: Help Creating Database using Code first Approach

From Dev

Creating an ADO.Net Entity Data Model with MySQL database?

From Dev

Creating database model with Mongoose

From Dev

Why Is My C# Code Only Displaying The First Row from my Database?

From Dev

Code First or Model First

From Dev

Code First or Model First

From Dev

ASP.NET MVC creating Model from Database (Postgres)

From Dev

Switching from entity framework model first to code first

From Dev

Code First not creating tables

From Dev

Entity Framework run-time ConnectionString when using Database First

Related Related

  1. 1

    Code first database not being created from model

  2. 2

    Why is it called 'Code First' from database in EF

  3. 3

    Creating a database with MySQL Workbench from existing schema/model

  4. 4

    Why database first classes differ from my code first classes

  5. 5

    auto update code first from database model, is it possible?

  6. 6

    Why is Hibernate not creating database for MySQL?

  7. 7

    Creating database through code first EF

  8. 8

    creating a database in mysql from java

  9. 9

    creating a database in mysql from java

  10. 10

    How to add additional tables to an existing code first from database EF model?

  11. 11

    'Code First From Database' Template not showing in Visual Studio Entity Data Model Wizard

  12. 12

    Entity Framework 6.1.3 initialize existing, but empty database from code-first model

  13. 13

    Code-first vs Model/Database-first

  14. 14

    Creating Pyramid/SQLAlchemy models from MySQL database

  15. 15

    Creating polylines from mysql database in google maps

  16. 16

    Creating a list using data from MySQL database

  17. 17

    Entity Framework Code First Migration in MySql DataBase

  18. 18

    Entity Framework 5 code-first not creating database

  19. 19

    Entity Framework: Help Creating Database using Code first Approach

  20. 20

    Entity Framework: Help Creating Database using Code first Approach

  21. 21

    Creating an ADO.Net Entity Data Model with MySQL database?

  22. 22

    Creating database model with Mongoose

  23. 23

    Why Is My C# Code Only Displaying The First Row from my Database?

  24. 24

    Code First or Model First

  25. 25

    Code First or Model First

  26. 26

    ASP.NET MVC creating Model from Database (Postgres)

  27. 27

    Switching from entity framework model first to code first

  28. 28

    Code First not creating tables

  29. 29

    Entity Framework run-time ConnectionString when using Database First

HotTag

Archive