Model backing a DB Context has changed; Consider Code First Migrations

前端 未结 13 623
旧巷少年郎
旧巷少年郎 2020-12-02 09:54

The model backing the \'MyDbContext\' context has changed since the database was created. Consider using Code First Migrations to update the database (http://

13条回答
  •  星月不相逢
    2020-12-02 10:34

    You need to believe me. I got this error for the simple reason that I forgot to add the connection string in the App.Config(mine is a wpf project) of your startup project.

    The entire config in my case

    
    
      
        
        

提交回复
热议问题