1.The model backing the 'XXXXDBContext' 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.

  出现上述错误需要在Global.asax中的Application_Start方法中加入:

Database.SetInitializer<Models.XXXXDBContext>(null);

2.<a>标签在display:block设置下不能居中的问题。

把display:block改为display:inline-block就OK了。

3.如果用<a>标签代替submit按钮。

 <a href="javascript:;" onclick="javascript:document.forms[0].submit();">保存</a>

相关文章:

  • 2021-10-19
  • 2021-05-22
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-01-26
猜你喜欢
  • 2021-10-23
  • 2022-01-22
  • 2021-11-20
  • 2021-12-07
  • 2021-04-18
相关资源
相似解决方案