MySQL Forums
Forum List  »  MySQL for Visual Studio

Re: MySQL for Visual Studio 1.1.1 Beta available for download
Posted by: Gabriela Martinez Sanchez
Date: December 05, 2013 10:19AM

Hi Thomas,

You didn't mention about adding the provider to the App/Web.config file. Your file should look like this:

<?xml version="1.0" encoding="utf-8"?>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit -->
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />

<add name="sakilaEntities" connectionString="metadata=res://*/Model2.csdl|res://*/Model2.ssdl|res://*/Model2.msl;provider=MySql.Data.MySqlClient;provider connection string=&quot;server=localhost;user id=root;database=sakila;persistsecurityinfo=True&quot;" providerName="System.Data.EntityClient" /></connectionStrings>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"></provider>

This should be done besides adding the reference for the assembly.

Please let me know if this worked for you.

Options: ReplyQuote

Written By
Re: MySQL for Visual Studio 1.1.1 Beta available for download
December 05, 2013 10:19AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.