Add controller error unable to retrieve metadata

前端 未结 7 2296
小蘑菇
小蘑菇 2020-12-05 05:25

I want to add controller in my MVC 4 application in VS2012 as this image:

\"add

Model:

相关标签:
7条回答
  • 2020-12-05 06:04

    User following for providerName = "System.Data.SqlServerCe.4.0"

    <add name="MovieDBContext" 
    connectionString="Data Source=|DataDirectory|\Movies.sdf"
    providerName="System.Data.SqlServerCe.4.0" />
    
    0 讨论(0)
提交回复
热议问题