Entity Framework 4.3. Invalid column name 'CreatedOn'

前端 未结 4 2023
盖世英雄少女心
盖世英雄少女心 2020-12-17 10:31

I\'m developing an ASP.NET MVC 4 application using VS 2010 and EF 4.3. It retrieves some data from an external database and all worked as expected until I tried to recompile

4条回答
  •  鱼传尺愫
    2020-12-17 11:02

    Actually there is CreatedOn column in __MigrationHistory table so the problem might be something EF migrations related. If there are no codechanges,pending migrations or anything the error is indeed a very strange case.

    PS. I found this, it might prove helpful: http://bstechnical.blogspot.fi/2012/08/invalid-column-name-createdon-code-first.html

提交回复
热议问题