The model backing the 'ApplicationDbContext' context has changed since the database was created

  • 258
  • 0

摘要:The model backing the 'ApplicationDbContext' context has changed since the database was created

使用 Enity framework 遇到的錯誤 ,原來是 Global.asax 沒加到某個區段
 

Database.SetInitializer(null);

 

參考