Exception when generating Controller with Entity Framework

3

In my application using Asp.net mvc , with Entity Framework 6 , with Mysql , when trying to add the Controllers , Views , using EF , I get the following error:

Myweb.configSettings:

<connectionStrings><addname="MyEntities" connectionString="metadata=res://*/Models.Model.csdl|res://*/Models.Model.ssdl|res://*/Models.Model.msl;provider=MySql.Data.MySqlClient;provider connection string=&quot;server=MeuServer;user id=MeuUsuario;password=******;persistsecurityinfo=True;database=MeuDatabase&quot;" providerName="MySql.Data.MySqlClient"/>

  </connectionStrings>
  <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"/>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
    </providers>
  </entityFramework>

How can I solve this problem? Thank you.

NOTE

When you try to create a controller without using EF , and add Views manually,     
asked by anonymous 08.08.2015 / 21:59

1 answer

1

Generating from scaffolding attempts to remove the last part that selects the Data Conext connection and scaffolding from a model not directly from the entity.

    
27.11.2015 / 15:39