How to use MySql and Entity Framework 4.1 code first

前端 未结 1 710
余生分开走
余生分开走 2021-02-04 18:53

I am trying to use MySQL database in MVCMusicStore
http://mvcmusicstore.codeplex.com/ instead of MSSQL.
I would like to learn Code first development with MySQL.
I ha

相关标签:
1条回答
  • 2021-02-04 19:47

    Try this code:

     <DbProviderFactories>  
       <remove invariant="MySql.Data.MySqlClient" />  
         <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"     description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />  
      </DbProviderFactories>
    
    0 讨论(0)
提交回复
热议问题