Unable to Retrieve Metadata

后端 未结 6 2188
傲寒
傲寒 2020-11-29 10:01

MVC4 + Entity Framework 4.4 + MySql + POCO/Code First

I\'m setting up the above configuration .. here are my classes:

namespace BTD.         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 10:50

    It seems that MVC4 Controller scaffolding is not properly recognizing MySql Connection String. Change the connection string as shown below when generating EF CRUD code for Controllers:

    
         
    
    

    Change it back to standard when running the application:

    
         
    
    

    Note the change, provider name.

提交回复
热议问题