源码信息

My Movies源码

My Movies源码

上传时间:2011-08-05 16:46

立即下载(免费)

最新源码评论

综合讨论 下载前咨询( 1 人) | 下载后讨论( 1 人 )

  • 评论者:kylem***
    kylem***(用户) 发表于:2012-10-21 10:00:42

    我也连不上数据库,报一样的错,楼主是否可以帮解释一下呢??

    0 个回复
  • 评论者:canto***
    canto***(用户) 发表于:2011-08-16 09:04:00

    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.

    1 个回复
    • 回复者:kylem***
      kylem***(用户)回复于:2012-10-22 22:03:09

      这个问题已解决:只要在继承MovieContext类的构造方法中加上:Database.SetInitializer<MovieContext>(null);就好了.