qwrqwerqw...
找不到"默认数据库连接字符串在webconfig配置文件中修改"中的webcon...
有演示看一下么...
我也连不上数据库,报一样的错,楼主是否可以帮解释一下呢??
The model backing the 'MovieContext' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the DropCreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data.
这个问题已解决:只要在继承MovieContext类的构造方法中加上:Database.SetInitializer<MovieContext>(null);就好了.
