Number of members in conceptual type does not match with number of members on object side type

后端 未结 9 801
梦如初夏
梦如初夏 2020-12-06 09:43

I\'m using .net framework 3.5 SP1.

After adding a column to one table in Sql Server (as well as changing an existing column from allowing nulls to not nullable), I c

9条回答
  •  长情又很酷
    2020-12-06 10:03

    This has happened to me when I am working on two versions of the same application (with Model differences) that compile into the same folders.

    It appears that Visual Studio doesn't "clean out" the "obj" temp folder properly and some fragments of the old model are still in there.

    If I simply delete all files from the "obj" folder and re-compile this error goes away.

    The Model in each version is perfect which was driving me crazy.

    Not saying this is the answer to the OP's question but it is definately another reason for this error.

    Steve

提交回复
热议问题